diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2019-06-26 15:28:32 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-06-28 08:45:56 +0200 |
commit | 4e4dc8dd974f5c5c5dc585e9a2032d310e7a54b8 (patch) | |
tree | ad9fea60b0f9ccd8e5e74d954369d81da8f1ee9a /server/sonar-web/src/main | |
parent | 3e75aa82f6eac9e0f410a12e934cfe28adbab3a1 (diff) | |
download | sonarqube-4e4dc8dd974f5c5c5dc585e9a2032d310e7a54b8.tar.gz sonarqube-4e4dc8dd974f5c5c5dc585e9a2032d310e7a54b8.zip |
SONAR-12118 Disable UNKNOWN issue type for custom rules
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap | 8 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/helpers/constants.ts | 8 |
2 files changed, 1 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap index c359c8ec9c4..f244d57d3dd 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap @@ -105,10 +105,6 @@ exports[`should handle re-activation 1`] = ` "label": "issue.type.SECURITY_HOTSPOT", "value": "SECURITY_HOTSPOT", }, - Object { - "label": "issue.type.UNKNOWN", - "value": "UNKNOWN", - }, ] } searchable={false} @@ -340,10 +336,6 @@ exports[`should render correctly 1`] = ` "label": "issue.type.SECURITY_HOTSPOT", "value": "SECURITY_HOTSPOT", }, - Object { - "label": "issue.type.UNKNOWN", - "value": "UNKNOWN", - }, ] } searchable={false} diff --git a/server/sonar-web/src/main/js/helpers/constants.ts b/server/sonar-web/src/main/js/helpers/constants.ts index 27a7a0bc86a..cf1546d0203 100644 --- a/server/sonar-web/src/main/js/helpers/constants.ts +++ b/server/sonar-web/src/main/js/helpers/constants.ts @@ -27,13 +27,7 @@ export const ISSUE_TYPES: T.IssueType[] = [ 'CODE_SMELL', 'SECURITY_HOTSPOT' ]; -export const RULE_TYPES: T.RuleType[] = [ - 'BUG', - 'VULNERABILITY', - 'CODE_SMELL', - 'SECURITY_HOTSPOT', - 'UNKNOWN' -]; +export const RULE_TYPES: T.RuleType[] = ['BUG', 'VULNERABILITY', 'CODE_SMELL', 'SECURITY_HOTSPOT']; export const RULE_STATUSES = ['READY', 'BETA', 'DEPRECATED']; export const CHART_COLORS_RANGE_PERCENT = [ |