1. 程式人生 > >使用sonarqube需要注意版本差異

使用sonarqube需要注意版本差異

使用sonarqube做質量管控時需要注意安裝的sonarqube版本,不同的sonarqube版本使用的命令:

1.做程式碼覆蓋率測試用到的:

Key Description Version
sonar.java.test.binaries Comma-separated paths to directories containing the compiled bytecode files corresponding to your test files FROM 3.2
sonar.java.test.libraries

Comma-separated paths to files with third-party libraries (JAR or Zip files) used by your tests. (For example, this should include the junit jar). 
Wildcards can be used :

sonar.java.test.libraries=path/to/specific/Library.jar,path/to/libs/*.jar,directory/**/*.jar
FROM 3.2
sonar.java.binaries Comma-separated paths to directories containing the compiled bytecode files corresponding to your source files FROM 2.5

sonar.java.libraries

Comma-separated paths to files with third-party libraries (JAR or Zip files) used by your project. 
Wildcards can be used :

sonar.java.libraries=path/to/specific/Library.jar,path/to/libs/*.jar,directory/**/*.jar
FROM 2.5
sonar.binaries Comma-separated paths to directories containing the compiled bytecode files corresponding to your source files BEFORE 2.5
sonar.libraries

Comma-separated paths to files with third-party libraries (JAR or Zip files). 
Wildcards can be used :

sonar.libraries=path/to/specific/Library.jar,path/to/libs/*.jar,directory/**/*.jar
BEFORE 2.5


繼續更新~~~