Skip to content

Commit a417009

Browse files
Update rule metadata (#1346)
Co-authored-by: jonas-wielage-sonarsource <jonas-wielage-sonarsource>
1 parent e5820c0 commit a417009

File tree

7 files changed

+21
-7
lines changed

7 files changed

+21
-7
lines changed

php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1311.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"linearOffset": "10min",
99
"linearFactor": "1min"
1010
},
11-
"tags": [],
11+
"tags": [
12+
"brain-overload"
13+
],
1214
"defaultSeverity": "Critical",
1315
"ruleSpecification": "RSPEC-1311",
1416
"sqKey": "S1311",

php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1451.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"func": "Constant\/Issue",
1313
"constantCost": "5min"
1414
},
15-
"tags": [],
15+
"tags": [
16+
"convention"
17+
],
1618
"defaultSeverity": "Blocker",
1719
"ruleSpecification": "RSPEC-1451",
1820
"sqKey": "S1451",

php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1751.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"func": "Constant\/Issue",
1313
"constantCost": "5min"
1414
},
15-
"tags": [],
15+
"tags": [
16+
"confusing",
17+
"bad-practice"
18+
],
1619
"defaultSeverity": "Major",
1720
"ruleSpecification": "RSPEC-1751",
1821
"sqKey": "S1751",

php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1764.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"func": "Constant\/Issue",
1313
"constantCost": "2min"
1414
},
15-
"tags": [],
15+
"tags": [
16+
"suspicious"
17+
],
1618
"defaultSeverity": "Major",
1719
"ruleSpecification": "RSPEC-1764",
1820
"sqKey": "S1764",

php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2201.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"func": "Constant\/Issue",
1313
"constantCost": "10min"
1414
},
15-
"tags": [],
15+
"tags": [
16+
"suspicious",
17+
"confusing"
18+
],
1619
"defaultSeverity": "Major",
1720
"ruleSpecification": "RSPEC-2201",
1821
"sqKey": "S2201",

php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S3981.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"func": "Constant\/Issue",
1313
"constantCost": "2min"
1414
},
15-
"tags": [],
15+
"tags": [
16+
"confusing"
17+
],
1618
"defaultSeverity": "Major",
1719
"ruleSpecification": "RSPEC-3981",
1820
"sqKey": "S3981",

sonarpedia.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"languages": [
44
"PHP"
55
],
6-
"latest-update": "2024-11-13T13:03:49.551706Z",
6+
"latest-update": "2024-12-16T14:18:44.796452Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": true

0 commit comments

Comments
 (0)