Using Sonarqube 10.3
We often have problems that Pull request sonar analysis is green, but after merge master has new sonar issues.
Here is one expample rule that seems to be not detect on PR analysis:
java:S1228 Packages should have a javadoc file ‘package-info.java’
Maven sonar plugin output extract:
**10:07:06** [**INFO**] Sensor JavaSensor [java]
**10:07:06** [**INFO**] Configured Java source version (sonar.java.source): 17, preview features enabled (sonar.java.enablePreview): false
**10:07:06** [**INFO**] The Java analyzer is running in a context where unchanged files can be skipped. Full analysis is performed for changed files, optimized analysis for unchanged files.
**10:07:07** [**INFO**] Server-side caching is enabled. The Java analyzer was able to leverage cached data from previous analyses for 810 out of 1064 files. These files will not be parsed.
**10:07:07** [**INFO**] Using ECJ batch to parse 254 Main java source files with batch size 417 KB.
**10:07:08** [**INFO**] Starting batch processing.
**10:07:12** [**INFO**] 100% analyzed
**10:07:12** [**INFO**] Batch processing: Done.