checkstyle / sonar-checkstyle

Support on Checkstyle in SonarQube. Officially transfered from https://github.com/SonarQubeCommunity/sonar-checkstyle
GNU Lesser General Public License v3.0
171 stars 70 forks source link

Duplicate Issues with Latest Version. #517

Closed rupreck closed 1 month ago

rupreck commented 4 months ago

Sonar version: 9.9.4 Enterprise Checkstyle sonar plugin version: 10.14.2

Steps to reproduce or description of problem:

Hello,

Updating from 10.9.3 caused maven java projects to show duplicate issues for every issue.

Rolling back removed the problem.

Here are some examples.

image

and

image

This looks like a quite serious bug.

muhlba91 commented 4 months ago

quick info: with the latest master branch, i do not get duplicates. i believe this was of the duplicate scope definition solved here: https://github.com/checkstyle/sonar-checkstyle/pull/514.

muhlba91 commented 4 months ago

release PR on SQ side: https://github.com/SonarSource/sonar-update-center-properties/pull/534

muhlba91 commented 4 months ago

@rupreck can you please confirm with 10.15.0 and update this issue? 😃

rupreck commented 4 months ago

Using 10.16.0 the problem remains.

image

We again have to revert back to 10.9.3 again.

image

Will

muhlba91 commented 3 months ago

could you also test 10.12.5 on whether this issue occurs?

there was a larger change removing deprecated sonarqube api from 10.12.5 to 10.14.1. it would be good to know if this is related.

additionally, do you have a multi-module project? maybe #511 could be related to this then.

rupreck commented 1 month ago

This problem resurfaced in 10.16.0 when installed to SonarQube Enterprise 10.5.1, although not immediately on every analysis. It seems to have affected only 1 large legacy project

image

However it does not appear with the latest 10.17.0 and appears to be resolved now.