Hi guys
I am a bit new so maybe stupid question but I cant find answer anywhere (google, docs, etc)
Versions:
sonarqube - 6.7.2
sonar maven plugin - 3.4.1.1168
maven - 3.5.3
Trying to analyze submodule in project that contains tests and test related stuff (“qa wants their code analyzed”)
Test code are divided into 4 submodules. There are at least one rule that sonar seems to check on 2 of 4 submodules, but not applying on files in other 2 modules - i.e. files that fails this specific rule are shown with issue only if they are in two submodules while if they are in two other modules sonar shows no error/issue.
Rule looks for specific regular expression in it (it is looking for some specific text in comment).
No submodules are excluded on call of mvn sonar:sonar
Files that are in question here are java files.
All submodules are analyzed as far as can tell since some issues are in all submodules (although those two submodules in question contains much much less issues).
Tried to google, tried to run mvn sonar:sonar with X but cant find anything that would point me to some direction where/how to look for reason why that specific rule was not found on files where it should be found.
Any advices?
Update:
Ok seems that my problem was not in modules but in folder - src/main/java got that rule check while src/test/java was not checked with that rules.
And found on google that it is ok… although no explanation why…
Is there really no way to apply to src/test/ that same rule checks that to src/main/java (in one project that is) ?