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 29, 2025
1 parent 2a37c56 commit 40e6e27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 12 additions & 5 deletions components/shared_code/src/shared_data_model/sources/sonarqube.py
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,9 @@ 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 +370,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 +434,9 @@ 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

- Fix accessibility issues found by the application test. Fixes [#6354](https://github.com/ICTU/quality-time/issues/6354).
Expand Down

0 comments on commit 40e6e27

Please sign in to comment.