How to disable a rule for specific file not the entire project

Must-share information (formatted with Markdown):

  • SonarQube 9.9.1 LTS, Scanner 4.7
  • how is SonarQube deployed: zip
  • what are you trying to achieve - trying to avoid a specific rule for a selected file in the scanning
  • what have you tried so far to achieve this - I know how to disable a rule for the entire scan. But not sure how to suppress a rule for a specific file.

Any suggestions or solution to achieve this???


Sounds like you want to look at the documentation for excluding specific rules from specific files.