SonarQube 9.6.1.59531 and sonarqube gradle plugin 3.4.0.2513
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.