SonarQube 22.214.171.124531 and sonarqube gradle plugin 126.96.36.1993
What are you trying to achieve:
In our code we have unit tests that use kotest and behaviorspec. This results in given, when, then clause duplication. And sonarqube marks those places as code smells. What I want to do is exclude duplicate rule for files that contain Test suffix in name. Is it possible? If not, what would be recommended approach?
What have you tried so far to achieve this:
I tried excluding all test files with mixed results, but I didn’t found a way to exclude rules per file types.