diff options
author | Viktor Vorona <viktor.vorona@sonarsource.com> | 2024-10-04 13:00:41 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-16 20:03:00 +0000 |
commit | 2b278b7029b326ed61d505a32ca11b35294dace5 (patch) | |
tree | 0cfbd42759f1e93b77874f3653ea937c886789f6 /server/sonar-web/src/main/js/helpers | |
parent | 8c192bf316bb264513ae8e5e36a6cf19a776ab6f (diff) | |
download | sonarqube-2b278b7029b326ed61d505a32ca11b35294dace5.tar.gz sonarqube-2b278b7029b326ed61d505a32ca11b35294dace5.zip |
SONAR-23261 Custom software quality severities
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/doc-links.ts | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/helpers/testMocks.ts | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/doc-links.ts b/server/sonar-web/src/main/js/helpers/doc-links.ts index 8d5efa930a0..cce7a923191 100644 --- a/server/sonar-web/src/main/js/helpers/doc-links.ts +++ b/server/sonar-web/src/main/js/helpers/doc-links.ts @@ -74,6 +74,7 @@ export enum DocLink { PullRequestAnalysis = '/analyzing-source-code/pull-request-analysis/introduction/', QualityGates = '/instance-administration/analysis-functions/quality-gates/', Root = '/', + RuleSeverity = '/instance-administration/analysis-functions/quality-profiles/#rule-severity', RulesOverview = '/user-guide/rules/overview', SecurityHotspots = '/user-guide/security-hotspots/', SecurityReports = '/user-guide/viewing-reports/security-reports/', diff --git a/server/sonar-web/src/main/js/helpers/testMocks.ts b/server/sonar-web/src/main/js/helpers/testMocks.ts index 7050f6de7e6..2408be0427c 100644 --- a/server/sonar-web/src/main/js/helpers/testMocks.ts +++ b/server/sonar-web/src/main/js/helpers/testMocks.ts @@ -641,6 +641,9 @@ export function mockRuleActivation(overrides: Partial<RuleActivation> = {}): Rul qProfile: 'baz', severity: 'MAJOR', prioritizedRule: false, + impacts: [ + { softwareQuality: SoftwareQuality.Maintainability, severity: SoftwareImpactSeverity.Medium }, + ], ...overrides, }; } |