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.