aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/constants.ts
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-12-05 17:32:18 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-05 20:20:59 +0100
commit41c98779d38bda9fdfdca182a5f20c73fcff9a84 (patch)
treed895a9f8bfd0276aee5ffacf7bb33a0109436cbd /server/sonar-web/src/main/js/helpers/constants.ts
parenta9c22c1185c5fd8c8dc4c9388f4a3b967e3f463d (diff)
downloadsonarqube-41c98779d38bda9fdfdca182a5f20c73fcff9a84.tar.gz
sonarqube-41c98779d38bda9fdfdca182a5f20c73fcff9a84.zip
create global type definitions (#1017)
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/constants.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/constants.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/helpers/constants.ts b/server/sonar-web/src/main/js/helpers/constants.ts
index 44cf06ffd8f..a4a4b8dec71 100644
--- a/server/sonar-web/src/main/js/helpers/constants.ts
+++ b/server/sonar-web/src/main/js/helpers/constants.ts
@@ -18,21 +18,21 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as theme from '../app/theme';
-import { RuleType, IssueType } from '../app/types';
export const SEVERITIES = ['BLOCKER', 'CRITICAL', 'MAJOR', 'MINOR', 'INFO'];
export const STATUSES = ['OPEN', 'REOPENED', 'CONFIRMED', 'RESOLVED', 'CLOSED'];
-export const ISSUE_TYPES = [
- IssueType.Bug,
- IssueType.Vulnerability,
- IssueType.CodeSmell,
- IssueType.Hotspot
+export const ISSUE_TYPES: T.IssueType[] = [
+ 'BUG',
+ 'VULNERABILITY',
+ 'CODE_SMELL',
+ 'SECURITY_HOTSPOT'
];
-export const RULE_TYPES = [
- RuleType.Bug,
- RuleType.Vulnerability,
- RuleType.CodeSmell,
- RuleType.Hotspot
+export const RULE_TYPES: T.RuleType[] = [
+ 'BUG',
+ 'VULNERABILITY',
+ 'CODE_SMELL',
+ 'SECURITY_HOTSPOT',
+ 'UNKNOWN'
];
export const RULE_STATUSES = ['READY', 'BETA', 'DEPRECATED'];