Python static analysis tools, such as
pylint support the convention of adding a
# noqa: <rule> or
# pylint: <rule> comment line to disregard a rule on a specific line. I’d love to see this same kind of thing come to Sonar Qube or Sonar Lint. Ideally, I’d prefer for it to use the
noqa on its own rather than defining a new one.
This would give me, as the developer, the ability to add exceptions for specific rules on a line or file basis without having to change the sonar-project file or the project config on the server.
Documentation of the existing standards: