|
|
|
@ -0,0 +1,17 @@
|
|
|
|
|
# 配置代码扫描的项目信息,每个项目有唯一的key,可以自己定
|
|
|
|
|
# must be unique in a given SonarQube instance
|
|
|
|
|
sonar.projectKey=Notes
|
|
|
|
|
|
|
|
|
|
# this is the name displayed in the SonarQube UI
|
|
|
|
|
# 名称自己定
|
|
|
|
|
sonar.projectName=Notes
|
|
|
|
|
sonar.projectVersion=1.0
|
|
|
|
|
|
|
|
|
|
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
|
|
|
|
# If not set, SonarQube starts looking for source code from the directory containing
|
|
|
|
|
# 配置扫描的代码目录,目录一般就是项目根目录下的src文件夹
|
|
|
|
|
sonar.sources=src
|
|
|
|
|
|
|
|
|
|
# classes文件目录,不加会报错。在代码根目录添加target文件夹(我的根目录为: E:\git\kang_wei\src)
|
|
|
|
|
# 如果还是报错在target中添加classes文件夹,之后下列等号右边改为target/classes
|
|
|
|
|
sonar.java.binaries=target
|