diff --git a/.scannerwork/.sonar_lock b/.scannerwork/.sonar_lock new file mode 100644 index 0000000..e69de29 diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt new file mode 100644 index 0000000..a7e4e29 --- /dev/null +++ b/.scannerwork/report-task.txt @@ -0,0 +1,6 @@ +projectKey=sonar1 +serverUrl=http://localhost:9000 +serverVersion=9.5.0.56709 +dashboardUrl=http://localhost:9000/dashboard?id=sonar1 +ceTaskId=AYMTgyVd0ZNvsugztfUv +ceTaskUrl=http://localhost:9000/api/ce/task?id=AYMTgyVd0ZNvsugztfUv diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..7370485 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,17 @@ +# 配置代码扫描的项目信息,每个项目有唯一的key,可以自己定 +# must be unique in a given SonarQube instance +sonar.projectKey=sonar1 + +# this is the name displayed in the SonarQube UI +# 名称自己定 +sonar.projectName=sonar1 +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 \ No newline at end of file