Skip to content

Commit 34169b2

Browse files
alban-auzeillpynicolas
authored andcommitted
Apply rule-api 1.17.0.1017 (except S1871.html that requires SONARPY-256) (SonarSource#139)
1 parent 7c1ccae commit 34169b2

12 files changed

Lines changed: 10 additions & 17 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "The \"print\" statement should not be used",
3-
"type": "BUG",
3+
"type": "CODE_SMELL",
44
"status": "ready",
55
"remediation": {
66
"func": "Constant\/Issue",
@@ -10,7 +10,7 @@
1010
"python3",
1111
"obsolete"
1212
],
13-
"defaultSeverity": "Blocker",
13+
"defaultSeverity": "Major",
1414
"ruleSpecification": "RSPEC-2320",
1515
"sqKey": "PrintStatementUsage"
1616
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p>Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all class
2-
names match a provided regular expression.</p>
1+
<p>Shared coding conventions allow teams to collaborate effectively. This rule allows to check that all class names match a provided regular
2+
expression.</p>
33
<h2>Noncompliant Code Example</h2>
44
<p>With default provided regular expression <code>^[A-Z][a-zA-Z0-9]*$</code>:</p>
55
<pre>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"title": "Files should contain an empty new line at the end",
2+
"title": "Files should contain an empty newline at the end",
33
"type": "CODE_SMELL",
44
"status": "ready",
55
"remediation": {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p>Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all local
2-
variable and function parameter names match a provided regular expression.</p>
1+
<p>Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when a local variable or function parameter name does
2+
not match the provided regular expression.</p>
33
<h2>Exceptions</h2>
44
<p>Loop counters are ignored by this rule.</p>
55
<pre>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<p>Shared coding conventions allow teams to collaborate effectively. For that reason, module names should conform to a defined standard.</p>
22
<h2>See</h2>
33
<ul>
4-
<li> <a href="https://www.securecoding.cert.org/confluence/x/P4IyAQ">CERT, MSC09-CPP.</a> - Character encoding: Use subset of ASCII for safety </li>
54
<li> <a href="https://www.securecoding.cert.org/confluence/x/lQAl">CERT, MSC09-C.</a> - Character encoding: Use subset of ASCII for safety </li>
65
</ul>
76

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ <h2>See</h2>
1212
<ul>
1313
<li> <a href="https://www.securecoding.cert.org/confluence/x/NYA5">CERT, MSC12-C.</a> - Detect and remove code that has no effect or is never
1414
executed </li>
15-
<li> <a href="https://www.securecoding.cert.org/confluence/x/SIIyAQ">CERT, MSC12-CPP.</a> - Detect and remove code that has no effect </li>
1615
</ul>
1716

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ <h2>See</h2>
2424
<li> <a href="https://www.securecoding.cert.org/confluence/x/uQCSBg">CERT, MSC56-J.</a> - Detect and remove superfluous code and values </li>
2525
<li> <a href="https://www.securecoding.cert.org/confluence/x/NYA5">CERT, MSC12-C.</a> - Detect and remove code that has no effect or is never
2626
executed </li>
27-
<li> <a href="https://www.securecoding.cert.org/confluence/x/OYIyAQ">CERT, MSC07-CPP.</a> - Detect and remove dead code </li>
2827
</ul>
2928

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"status": "ready",
55
"remediation": {
66
"func": "Constant\/Issue",
7-
"constantCost": "5 min"
7+
"constantCost": "5min"
88
},
99
"tags": [
1010
"cwe",

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ <h2>See</h2>
2828
<ul>
2929
<li> <a href="https://www.securecoding.cert.org/confluence/x/NYA5">CERT, MSC12-C.</a> - Detect and remove code that has no effect or is never
3030
executed </li>
31-
<li> <a href="https://www.securecoding.cert.org/confluence/x/SIIyAQ">CERT, MSC12-CPP.</a> - Detect and remove code that has no effect </li>
3231
<li> {rule:python:S1656} - Implements a check on <code>=</code>. </li>
3332
</ul>
3433

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ <h2>See</h2>
2424
<ul>
2525
<li> <a href="https://www.securecoding.cert.org/confluence/x/NYA5">CERT, MSC12-C.</a> - Detect and remove code that has no effect or is never
2626
executed </li>
27-
<li> <a href="https://www.securecoding.cert.org/confluence/x/SIIyAQ">CERT, MSC12-CPP.</a> - Detect and remove code that has no effect </li>
2827
</ul>
2928

0 commit comments

Comments
 (0)