Hi. We're running Sonar against our production code base and commonly use Django's test framework as well as Python's standard library unittest package. Both of these packages follow JUnit's naming convention, which is camel case, rather than the more common Python snake case standard. This creates a lot of noisy alerts for every `setUp`/`setUpClass`/`setUpModule`/`tearDown` etc in the module. Assertions are also camel-cased, so you have the same problem if you write a custom assertion method.
I'd just started familiarizing myself with the sonar docs and xpath, and came up with a query that finds setUp methods, when I came across the directive in the docs to visit here and publicly propose the rule.
Also, if anybody has suggestions on how to finish implementing this, that would be great. As I said, I have figured out query selectors for function defs that match 'setUp*'/'tearDown*'/'assert*', but I how do you specify that a rule only applies in files whose name matches `test*.py`?
Best,
Liav.