- versions used: SonarQube 8.9.1
- minimal code sample to reproduce
Add a simple Java Class that contains a test method and an assert in a package that does not contain the words test, junit or assert.
Any class that contains test methods and asserts that would be included in a source package that does not include the words “test”, “junit” or “assert” will trigger this rule.
But the rule does not consider asserts found in packages that include the work “it”, which is a possibility as per the maven standard directory layout. Would it be possible to add the “it” word to the list of exceptions also, since junit and assert ar also included, not just test?