Skip to content

Commit 46ba21e

Browse files
Update rules metadata (#949)
1 parent e0bd72f commit 46ba21e

File tree

169 files changed

+455
-366
lines changed

Some content is hidden

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

169 files changed

+455
-366
lines changed

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/BackticksUsage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>Backticks are a deprecated alias for <code>repr()</code>. Don't use them any more, the syntax was removed in Python 3.0.</p>
1+
<p>Backticks are a deprecated alias for <code>repr()</code>. Dont use them any more, the syntax was removed in Python 3.0.</p>
22
<h2>Noncompliant Code Example</h2>
33
<pre>
44
return `num` # Noncompliant

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"linearOffset": "10min",
99
"linearFactor": "1min"
1010
},
11-
"tags": [
12-
13-
],
11+
"tags": [],
1412
"defaultSeverity": "Critical",
1513
"ruleSpecification": "RSPEC-1311",
1614
"sqKey": "ClassComplexity",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"func": "Constant\/Issue",
77
"constantCost": "0min"
88
},
9-
"tags": [
10-
11-
],
9+
"tags": [],
1210
"defaultSeverity": "Major",
1311
"ruleSpecification": "RSPEC-124",
1412
"sqKey": "CommentRegularExpression",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"linearOffset": "30min",
99
"linearFactor": "1min"
1010
},
11-
"tags": [
12-
13-
],
11+
"tags": [],
1412
"defaultSeverity": "Major",
1513
"ruleSpecification": "RSPEC-1908",
1614
"sqKey": "FileComplexity",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"title": "\"<>\" should not be used to test inequality",
2+
"title": "\"\u003c\u003e\" should not be used to test inequality",
33
"type": "CODE_SMELL",
44
"status": "ready",
55
"remediation": {

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"func": "Constant\/Issue",
77
"constantCost": "2min"
88
},
9-
"tags": [
10-
11-
],
9+
"tags": [],
1210
"defaultSeverity": "Minor",
1311
"ruleSpecification": "RSPEC-1129",
1412
"sqKey": "LongIntegerWithLowercaseSuffixUsage",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"func": "Constant\/Issue",
77
"constantCost": "5min"
88
},
9-
"tags": [
10-
11-
],
9+
"tags": [],
1210
"defaultSeverity": "Major",
1311
"ruleSpecification": "RSPEC-2319",
1412
"sqKey": "PreIncrementDecrement",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S101.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p>Shared coding conventions allow teams to collaborate effectively. This rule allows to check that all class names match a provided regular
22
expression.</p>
33
<p>The default regular expression is based on PEP-8 standard. It allows "CapWords" convention and "snake_case" in lowercase. The "snake_case"
4-
convention is accepted by PEP-8 when the class is primarily used as a callable (ex: decorator, context manager, etc...). However the "CapWords"
4+
convention is accepted by PEP-8 when the class is primarily used as a callable (ex: decorator, context manager, etc…​). However the "CapWords"
55
convention is recommended in every case.</p>
66
<h2>Noncompliant Code Example</h2>
77
<p>With default provided regular expression <code>^_?([A-Z_][a-zA-Z0-9]*|[a-z_][a-z0-9_]*)$</code>:</p>

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
"func": "Constant\/Issue",
77
"constantCost": "5min"
88
},
9-
"tags": [
10-
11-
],
9+
"tags": [],
1210
"defaultSeverity": "Major",
1311
"ruleSpecification": "RSPEC-1045",
1412
"sqKey": "S1045",
15-
"scope": "Main"
13+
"scope": "Main",
14+
"securityStandards": {
15+
"CERT": [
16+
"ERR54-CPP."
17+
]
18+
}
1619
}

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1066.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>Merging collapsible <code>if</code> statements increases the code's readability.</p>
1+
<p>Merging collapsible <code>if</code> statements increases the codes readability.</p>
22
<h2>Noncompliant Code Example</h2>
33
<pre>
44
if condition1:

0 commit comments

Comments
 (0)