From 8b22be09db31b88e163c85b54f4af9ca9cc510b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9A?= <1486806484@qq.com> Date: Thu, 15 Sep 2022 19:55:21 +0800 Subject: [PATCH] sonarqube --- sonar-project.properties | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..9efaa2a --- /dev/null +++ b/sonar-project.properties @@ -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 \ No newline at end of file