Skip to content

Commit f251712

Browse files
SONARPY-2408 Update rules metadata with new tags
1 parent 64274bf commit f251712

File tree

140 files changed

+463
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+463
-141
lines changed

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/ClassComplexity.json

Lines changed: 3 additions & 1 deletion
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": "ClassComplexity",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/CommentRegularExpression.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"func": "Constant\/Issue",
1313
"constantCost": "0min"
1414
},
15-
"tags": [],
15+
"tags": [
16+
"convention"
17+
],
1618
"defaultSeverity": "Major",
1719
"ruleSpecification": "RSPEC-124",
1820
"sqKey": "CommentRegularExpression",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/FileComplexity.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"linearOffset": "30min",
99
"linearFactor": "1min"
1010
},
11-
"tags": [],
11+
"tags": [
12+
"brain-overload"
13+
],
1214
"defaultSeverity": "Major",
1315
"ruleSpecification": "RSPEC-1908",
1416
"sqKey": "FileComplexity",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/LongIntegerWithLowercaseSuffixUsage.json

Lines changed: 3 additions & 1 deletion
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+
"convention"
17+
],
1618
"defaultSeverity": "Minor",
1719
"ruleSpecification": "RSPEC-1129",
1820
"sqKey": "LongIntegerWithLowercaseSuffixUsage",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/PreIncrementDecrement.json

Lines changed: 3 additions & 1 deletion
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": "Major",
1719
"ruleSpecification": "RSPEC-2319",
1820
"sqKey": "PreIncrementDecrement",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1045.json

Lines changed: 3 additions & 1 deletion
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+
"suspicious"
17+
],
1618
"defaultSeverity": "Major",
1719
"ruleSpecification": "RSPEC-1045",
1820
"sqKey": "S1045",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1128.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"constantCost": "1min"
1414
},
1515
"tags": [
16+
"convention",
1617
"unused"
1718
],
1819
"defaultSeverity": "Minor",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1143.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
},
1515
"tags": [
1616
"cwe",
17-
"error-handling"
17+
"error-handling",
18+
"pitfall"
1819
],
1920
"defaultSeverity": "Critical",
2021
"ruleSpecification": "RSPEC-1143",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1144.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"constantCost": "2min"
1414
},
1515
"tags": [
16-
"unused"
16+
"suspicious"
1717
],
1818
"defaultSeverity": "Major",
1919
"ruleSpecification": "RSPEC-1144",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1226.json

Lines changed: 3 additions & 1 deletion
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+
"suspicious"
17+
],
1618
"defaultSeverity": "Minor",
1719
"ruleSpecification": "RSPEC-1226",
1820
"sqKey": "S1226",

0 commit comments

Comments
 (0)