How to temporarily turn off a rule?


(Philip Colmer) #1

I’m using SonarLint with VS Code against Python code.

I’m hitting a situation where a rule is flagging up a warning on my code, specifically S107 - too many parameters. The problem I’ve got is that I’m writing a wrapper function before calling someone else’s code, and I need to pass a number of parameters to that secondary function … so I really can’t alter how many parameters I have in my own function.

Is there any mechanism that I can use to mark up that code so that SonarLint ignores S107 against that specific function?

Thanks.