Skip to content

Instantly share code, notes, and snippets.

@jimathyp
Last active August 19, 2022 05:58
Show Gist options
  • Select an option

  • Save jimathyp/59b04c7bfbe1667bcc8ee37648df1961 to your computer and use it in GitHub Desktop.

Select an option

Save jimathyp/59b04c7bfbe1667bcc8ee37648df1961 to your computer and use it in GitHub Desktop.

Sonarlint

Turning off rules

https://community.sonarsource.com/t/how-to-temporarily-turn-off-a-rule/4135/3

You can add a #NOSONAR comment in your code or, if you use SonarLint with SonarQube or SonarCloud, you can mark the issue as “Won’t Fix” and connect your SobarLint to SonarQube and SonarCloud.

Rule S107 raises many issues on well known python projects. In this case it would even raise on AWS boto. In python it is common for functions/methods to have many parameters, but most of them are optional.

Or in VS Code - clikc on error "disable" seems to be easiest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment