Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not exclude particular package from sonar runner(Sonar 3.3.1)

My project has hierarchy as :

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

I want to exclude com.adapter.schema package while running sonar.

My sonar.properties is:

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
like image 819
komal kadam Avatar asked Apr 26 '13 10:04

komal kadam


1 Answers

You have to use the "sonar.exclusions" property that is described in the documentation : http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreFiles

like image 160
Fabrice - SonarSource Team Avatar answered Oct 09 '22 15:10

Fabrice - SonarSource Team