]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12118 Disable UNKNOWN issue type for custom rules
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Wed, 26 Jun 2019 13:28:32 +0000 (15:28 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Jun 2019 06:45:56 +0000 (08:45 +0200)
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap
server/sonar-web/src/main/js/helpers/constants.ts

index c359c8ec9c4dd6e21e6381fac13a58bbaaa36b19..f244d57d3ddcc771d5297cd3e641ec09c91c3786 100644 (file)
@@ -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}
index 27a7a0bc86a03ce0214da044e1ebc57db954be27..cf1546d0203076c9114ead8e011943b66680bf42 100644 (file)
@@ -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 = [