issue: trying set sonar-project.properties ignore module or package , doesn't work.
i totally new sonar , i'm using eclipse plugin on java maven project , i'm trying ignore stuff (e.g. package or module) sonar-project.properties file doesn't seem have effect.
i have 1 properties file in root of project. , there 2 modules (one java , 1 webapp)
sonar.projectkey=projectname sonar.projectname=projectname sonar.projectversion=1.0 sonar.modules=javamodule,webapp sonar.sources=src/main/ sonar.tests=src/test/java sonar.java.binaries=target/classes sonar.java.libraries=../*/target/**/*.jar if try exclude like
sonar.exclusions=com/package/files/**/* or
webapp.sonar.exclusions=resources/**/* then analyze on module , nothing ignored. tried adding individual properties files inside modules..
also, ignore whole webapp module. should not declare it, or there other way?
edit:
for example's sake, package structure
javamodule - src/main/java - com/package/files - src/main/resources - src/test/java - src/test/resources webapp - src/main/resources - src/main/webapp
the sonarqube eclipse plugin takes account exclusions set through web interface. doesn't take account exclusions set in configuration files such sonar-project.properties files.
Comments
Post a Comment