In Python we can suppress all Sonarqube warnings at a particular line in the code by applying the # NOSONAR
comment. This is not ideal. Is there a way to suppress a specific error, instead of supressing all errors?
For example, you may have a function with two warnings:
Function "foo" has 8 parameters, which is greater than the 7 authorized.
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed
How can you suppress the first, but not the second?