Exclude issues by severity

Hello, as part of the suggested workaround to not being able to disable rule in inherited profiles (Extended Quality profile has no option to deactivate rules - #6 by ganncamp), I am using an inherited profile with undesired rules changed to to status “INFO”.

My team has a goal of no open issues. I would prefer not to have to tell developers “a project is actually clean, just don’t look at INFOs”. The workaround suggests periodic scrub of the INFO issues.

Is there an option I could use, possibly through sonar-scanner or sonar-project.properties file so that INFO issues are not added to the server view in the first place?

Thank you!

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • server: EE 9.5 (build 56709)
  • build-wrapper: 6.34.0
  • sonar-scanner:
  • build OS: RHEL

Hey there.

You can Exclude specific rules from specific files, but that will require maintaining a list of those rules you want to have excluded.

And, I’m curious why this is your goal:

Rather than say, having a Maintainability/Security/Reliability Rating of A. How are your Quality Gates configured?