Pull Request report an old issue at class level

Must-share information (formatted with Markdown):

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

  • how is SonarQube deployed: zip, Docker, Helm
    Docker

  • what are you trying to achieve
    An issue that has already been reported on the source branch and the target branch should not be reported again on pr.

  • what have you tried so far to achieve this
    An issue releate the rule java:S1448 was reported on main branch.
    Create a bugfix branch from main branch , and the same issue reported on bugfix branch .
    New merge request from bugfix to main , this issue reported on merge request again.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

Was it the exact same issue, or was there a difference, for example, in the issue message?

Class "TooManyMethodsCheck" has 6 methods, which is greater than the 4 authorized. Split it into smaller classes.

vs

Class "TooManyMethodsCheck" has 7 methods, which is greater than the 4 authorized. Split it into smaller classes.

Hi Colin

Yes ,the issue message has a difference just like  your example.

In that case, isn’t it fair to say that there is a difference in the issue between the issue on the main branch and the issue in the pull request?

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