我应该在 sonar-groovy 中的什么地方定义属性?

Where should I define properties in sonar-groovy?

我经历了 https://github.com/pmayweg/sonar-groovy

在 README.md 中,它指定了一些需要提及的属性,但我无法确定我必须在何处以及在哪个文件中提及它们。

pmayweg/sonar-groovy/README.md中定义的实际信息:

CodeNarc It is possible to reuse a previously generated report from CodeNarc by setting the sonar.groovy.codenarc.reportPaths property.

Groovy File Suffixes It is possible to define multiple groovy file suffixes to be recognized by setting the sonar.groovy.file.suffixes property. Note that by default, only files having .groovythe as extension will be analyzed.

Unit Tests Execution Reports Import unit tests execution reports (JUnit XML format) by setting the sonar.junit.reportsPath property. Default location is target/surefire-reports.

JaCoCo and Binaries The groovy plugin requires access to source binaries when analyzing JaCoCo reports. Consequently, property sonar.groovy.binaries has to be configured for the analysis (comma-separated paths to binary folders). For Maven and gradle projects, the property is automatically set.

终于知道了

sonar-scanner.properties in sonar-scanner/conf or
sonar-project.properties 在你的项目中。