Will the new Quality Profile rules analyze unchanged files?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Enterprise edition 8.9

  • what are you trying to achieve
    After the first scan, add some new rules to the project quality Profile and continue scanning unchanged files to make sure they are scanned and not ignored.

  • what have you tried so far to achieve this
    Our findings:

  1. Profile A with a few rules was used to scan file F1 for the first time, and the scan passed without blocking problems ;
  2. Profile A adds some rules to form Profile B, and the file F1 has not been changed for 2 years. Profile B is used to scan the code containing the F1 file, and the file F1 is scanned without blocking problems

Hey there.

Yes, unchanged files will be analyzed when new rules are added. And, Issue backdating will kick in and (assuming SCM data is available) backdate the issue to the last commit date of the code (so no noise in your New Code Period!).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.