Groovy imports considered as duplicated lines in SonarQube

Hi,

A PR failing at SonarQube check due to duplicated lines in new code.
The thing is the duplicated code is just module imports which don’t make sense to be an issue.
Another issue is there is no legit workaround, as these are not identified as issues, that’s why there’s no way to mark it as “False Positive” or “Won’t Fix”.

Apparently, Sonar fixed this behaviour for Kotlin and TypeScript imports:

NB: We’re using SonarQube Developer Edition Version 8.9.9 (build 56886), Groovy and Java Quality Profile.

Hi,

Welcome to the community!

Unfortunately, we don’t maintain the Groovy plugin. You’ll need to take this up with the Groovy plugin maintainers.

 
:frowning:
Ann

@ganncamp I think Groovy is just in the name of the package. @marcusvoltolim Are these Java files?

1 Like