How to get violations in exisiting code after turning on new rules?

sonarcloud
(Peter Bons) #1

Given an existing project that has been analyzed before, what would I need to do to perform a complete re-analyzation of the whole code base?

Background: I did add some rules to the quality profile that is in use for that project but it seems that violations are not reported for untouched code.

(Adam Gabryś) #2

It is really really weird. Usually people wants achieve a situation which you have, and they couldn’t - because it is unsupported. SonarScanner always analyze the whole code base. Do you use a paid version, like Developer Edition? If yes, then do you use sonar.branch.name? If yes, then you see only issues in the changed code. After rebuild the main (aka master) branch all issues should be created.