Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metric for disabled/ignored rules in SonarQube #8439

Open
javanegmond opened this issue Apr 9, 2024 · 1 comment
Open

Add metric for disabled/ignored rules in SonarQube #8439

javanegmond opened this issue Apr 9, 2024 · 1 comment
Labels
Metric(s) New, enhanced, or removed metric
Projects

Comments

@javanegmond
Copy link

Is your feature request related to a problem? Please describe.
Sometimes a team may simply not agree with specific Sonar rules and disable them (through configuration) or ignore them (either through configuration or through using the 'ignore' tag). It would be nice to have an overview in Quality Time of the disabled rules.

Describe the solution you'd like
A new metric that lists which rules have been disabled/ignored etc. Could perhaps be filtered like we already can filter SonarQube issues.

Describe alternatives you've considered
None.

Additional context
None.

@javanegmond javanegmond added the Feature New, enhanced, or removed feature label Apr 9, 2024
@fniessink fniessink added this to Backlog in Backlog via automation Apr 9, 2024
@fniessink fniessink moved this from Backlog to Refinement agenda in Backlog Apr 9, 2024
@fniessink fniessink moved this from Refinement agenda to Refinement in progress in Backlog Apr 18, 2024
@fniessink fniessink added Metric(s) New, enhanced, or removed metric and removed Feature New, enhanced, or removed feature labels Apr 18, 2024
@fniessink
Copy link
Member

fniessink commented Apr 18, 2024

Tasks

  • Add a new metric "Enabled/disabled/changed rules"
  • Add SonarQube as supported source
  • Add a parameter "Project key" (generalising this zero or more project keys is out of scope).
  • Use the api/qualityprofiles/search endpoint to lookup the quality profiles for the configured project. Assumption: we only get the quality profiles for languages actually used in the project.
  • Compare the non-default quality profiles with the default quality profiles, per language.
  • For each language used in the project, create a measurement entity that links to the compare page for the non-default and default profiles.

@fniessink fniessink moved this from Refinement in progress to Ready in Backlog Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metric(s) New, enhanced, or removed metric
Projects
Backlog
Ready
Development

No branches or pull requests

2 participants