5

我的项目的层次结构为:

        test-my-project>src>com.adapter
               >com.adapter.schema
               >test

我想在运行声纳时排除 com.adapter.schema 包。

我的 sonar.properties 是:

声纳属性

/#required metadata
sonar.projectKey=test:prj
sonar.projectName=test-my-project
sonar.projectVersion=1.0
/# path to source directories (required)
sonar.sources=src
/# path to project binaries (optional), for example directory of Java bytecode
/# when you build the project, where the .class files are gone
sonar.binaries=build/classes
/# The value of the property must be the key of the language.
sonar.language=java
4

1 回答 1

13

您必须使用文档中描述的“sonar.exclusions”属性:http: //docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreFiles

于 2013-04-29T08:44:04.153 回答