我对SonarQube的接触很少,但被要求制作一份文件,说明如何设置/使用“sonar-project.properties文件”。非常感谢任何信息或输入。
我对SonarQube的接触很少,但被要求制作一份文件,说明如何设置/使用“sonar-project.properties文件”。非常感谢任何信息或输入。
以下是一些入门资源:
https://www.wrightfully.com/setting-up-sonar-analysis-for-c-projects/ - 可以参考第6步:sonar-project.properties文件。
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
Github上也有一些样例项目,你可以参考那里的project.properties文件, https://github.com/SonarSource/sonar-scanning-examples
sonar-project.properties
:# Must be unique in a given SonarQube instance
sonar.projectKey=my-project
# This is the name and version displayed in the SonarQube UI.
# Was mandatory prior to SonarQube 6.1.
sonar.projectName=My project
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file.
# Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=src
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8