Skip to content

Commit

Permalink
Support the new SonarQube impact severity levels "blocker" and "info"…
Browse files Browse the repository at this point in the history
…, introduced in SonarQube v10.8.

Closes #10708.
  • Loading branch information
fniessink committed Jan 23, 2025
1 parent 10eb646 commit d159b89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def violation_entity_attributes(
name="Impact",
key="impacts",
color={
"blocker impact on maintainability": Color.NEGATIVE,
"blocker impact on reliability": Color.NEGATIVE,
"blocker impact on security": Color.NEGATIVE,
"high impact on maintainability": Color.NEGATIVE,
"high impact on reliability": Color.NEGATIVE,
"high impact on security": Color.NEGATIVE,
Expand Down Expand Up @@ -329,7 +332,7 @@ def violation_entity_attributes(
metrics=ALL_SONARQUBE_METRICS,
),
"private_token": PrivateToken(
help_url=HttpUrl("https://docs.sonarqube.org/latest/user-guide/user-token/"),
help_url=HttpUrl("https://docs.sonarsource.com/sonarqube-server/latest/user-guide/managing-tokens/"),
metrics=ALL_SONARQUBE_METRICS,
),
"component": StringParameter(
Expand All @@ -341,7 +344,7 @@ def violation_entity_attributes(
"branch": StringParameter(
name="Branch (only supported by commercial SonarQube editions)",
short_name="branch",
help_url=HttpUrl("https://docs.sonarqube.org/latest/branches/overview/"),
help_url=HttpUrl("https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/branch-analysis/introduction/"),
default_value="main",
metrics=PROJECT_METRICS,
),
Expand All @@ -365,8 +368,8 @@ def violation_entity_attributes(
"impact_severities": Severities(
name="Impact severities",
placeholder="all impact severities",
help_url=HttpUrl("https://docs.sonarsource.com/sonarqube/latest/user-guide/issues/#issue-severity"),
values=["low", "medium", "high"],
help_url=HttpUrl("https://docs.sonarsource.com/sonarqube-server/latest/user-guide/rules/overview/"),
values=["info", "low", "medium", "high", "blocker"],
metrics=["security_warnings", "suppressed_violations", "violations"],
),
"impacted_software_qualities": MultipleChoiceParameter(
Expand Down Expand Up @@ -429,7 +432,7 @@ def violation_entity_attributes(
name="Tags to include",
short_name="tags",
placeholder="all tags",
help_url=HttpUrl("https://docs.sonarsource.com/sonarqube/latest/user-guide/issues/"),
help_url=HttpUrl("https://docs.sonarsource.com/sonarqube-server/latest/user-guide/rules/built-in-rule-tags/"),
metrics=["security_warnings", "violations"],
),
},
Expand Down
4 changes: 4 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ If your currently installed *Quality-time* version is not the latest version, pl

## [Unreleased]

### Added

- Support the new SonarQube impact severity levels "blocker" and "info", introduced in SonarQube v10.8. Closes [#10708](https://github.com/ICTU/quality-time/issues/10708).

### Fixed

- Use browser locale to determine the first day of the week in date pickers. Fixes [#7250](https://github.com/ICTU/quality-time/issues/7250).
Expand Down

0 comments on commit d159b89

Please sign in to comment.