I’m using sonar with python/terraform projects
what are the thoughts on being able to selectively suppress rules, via comments in the code, e.g.
# pylint: disable=xxx
# type: ignore[xxx]
this is a really common pattern for linting tools, and allows for the suppression to be maintained with the code.
In particular we have been finding the duplicate checking somewhat overbearing, sometimes what ‘looks’ like the same code may be duplicated, but is actually similar ‘scaffolding’, but not actually the same code something that should be (or needs) a abstract base class factory pattern to avoid ever repeating a line of code.