1. 程式人生 > >sonar的使用:使用sonar-scanner檢測程式碼

sonar的使用:使用sonar-scanner檢測程式碼

# must be unique in a given SonarQube instance
sonar.projectKey=your_project(自己定義)
# this is the name displayed in the SonarQube UI
sonar.projectName=your_project(自己定義)
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set. 
# If not set, SonarQube starts looking for source code from the directory containing 
# the sonar-project.properties file.
sonar.sources=src(程式碼目錄)
sonar.java.binaries=target(classes檔案目錄,不加會報錯)
sonar.language=java
# Encoding of the source code. Default is default system encoding