Hi,
we changed sonar scanner execution from maven plugin:
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.9.1.2184</version>
</plugin>
to container sonarsource/sonar-scanner-cli:5
Container and plugin runs make use of our custom quality-gates and rules, but differ in results. In details:
- ‘Remove usage of generic wildcard type. [java:S1452]’
- ’ Make the enclosing method “static” or remove this set. [java:2696]
are not found by the container run. There are also some other differences. Both runs were executed with the same properties.
Sonarlint intelliJ plugin has the same results as the maven plugin run. Both runs analyze all files (other smells where found by both analyzers).
Does anybody else face that inconsistencies?