aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/data/rules.ts
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2023-12-06 11:08:25 +0100
committersonartech <sonartech@sonarsource.com>2023-12-08 20:03:05 +0000
commit3c3ee9dbc3e54a3b1920e1db3006174b205dee91 (patch)
tree5812207ccd2fc9f173838691fb12ff83638c3d74 /server/sonar-web/src/main/js/api/mocks/data/rules.ts
parentf858d78968e5a82dbfcd494838cf46d4577a2211 (diff)
downloadsonarqube-3c3ee9dbc3e54a3b1920e1db3006174b205dee91.tar.gz
sonarqube-3c3ee9dbc3e54a3b1920e1db3006174b205dee91.zip
SONAR-21179 Use update endpoint when reactivating a rule
Diffstat (limited to 'server/sonar-web/src/main/js/api/mocks/data/rules.ts')
-rw-r--r--server/sonar-web/src/main/js/api/mocks/data/rules.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/mocks/data/rules.ts b/server/sonar-web/src/main/js/api/mocks/data/rules.ts
index f7a1aca3dbf..3616cb845e4 100644
--- a/server/sonar-web/src/main/js/api/mocks/data/rules.ts
+++ b/server/sonar-web/src/main/js/api/mocks/data/rules.ts
@@ -25,6 +25,7 @@ import {
SoftwareImpactSeverity,
SoftwareQuality,
} from '../../../types/clean-code-taxonomy';
+import { RuleStatus } from '../../../types/rules';
import {
ADVANCED_RULE,
QP_1,
@@ -34,6 +35,7 @@ import {
RULE_1,
RULE_10,
RULE_11,
+ RULE_12,
RULE_2,
RULE_3,
RULE_4,
@@ -214,7 +216,7 @@ export function mockRuleDetailsList() {
{ key: '1', type: 'TEXT', htmlDesc: 'html description for key 1' },
{ key: '2', type: 'NUMBER', defaultValue: 'default value for key 2' },
],
- templateKey: 'rule8',
+ templateKey: RULE_8,
}),
mockRuleDetails({
createdAt: '2022-12-16T17:26:54+0100',
@@ -242,6 +244,17 @@ export function mockRuleDetailsList() {
langName: 'Java',
name: 'Common java rule',
}),
+ mockRuleDetails({
+ key: RULE_12,
+ type: 'BUG',
+ severity: 'MINOR',
+ lang: 'py',
+ langName: 'Python',
+ tags: ['awesome'],
+ name: 'Deleted custom rule based on rule8',
+ templateKey: RULE_8,
+ status: RuleStatus.Removed,
+ }),
];
}