Skip to content

Commit

Permalink
Update rule metadata (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-werner-sonarsource authored Nov 5, 2021
1 parent 213aece commit e2b05ef
Show file tree
Hide file tree
Showing 212 changed files with 661 additions and 378 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Blocker",
"ruleSpecification": "RSPEC-2316",
"sqKey": "BackticksUsage",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-1311",
"sqKey": "ClassComplexity",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-124",
"sqKey": "CommentRegularExpression",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"defaultSeverity": "Blocker",
"ruleSpecification": "RSPEC-2317",
"sqKey": "ExecStatementUsage",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1908",
"sqKey": "FileComplexity",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-1541",
"sqKey": "FunctionComplexity",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2318",
"sqKey": "InequalityUsage",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-103",
"sqKey": "LineLength",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-1129",
"sqKey": "LongIntegerWithLowercaseSuffixUsage",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-122",
"sqKey": "OneStatementPerLine",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2260",
"sqKey": "ParsingError",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2319",
"sqKey": "PreIncrementDecrement",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2320",
"sqKey": "PrintStatementUsage",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-100",
"sqKey": "S100",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-101",
"sqKey": "S101",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-104",
"sqKey": "S104",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@
"ruleSpecification": "RSPEC-1045",
"sqKey": "S1045",
"scope": "Main",
"securityStandards": {
"CERT": [
"ERR54-CPP."
]
}
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1066",
"sqKey": "S1066",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-107",
"sqKey": "S107",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-108",
"sqKey": "S108",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1110",
"sqKey": "S1110",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ <h2>See</h2>
<ul>
<li> PEP 352 - <a href="https://www.python.org/dev/peps/pep-0352/#exception-hierarchy-changes">Required Superclass for Exceptions</a> </li>
<li> Python Documentation - <a href="https://docs.python.org/3/library/exceptions.html#BaseException">Built-in exceptions</a> </li>
<li> <a href="http://cwe.mitre.org/data/definitions/397.html">MITRE, CWE-397</a> - Declaration of Throws for Generic Exception </li>
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/_DdGBQ">CERT, ERR07-J.</a> - Do not throw RuntimeException, Exception, or Throwable </li>
<li> <a href="https://cwe.mitre.org/data/definitions/397.html">MITRE, CWE-397</a> - Declaration of Throws for Generic Exception </li>
</ul>

Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
"securityStandards": {
"CWE": [
397
],
"CERT": [
"ERR07-J."
]
}
},
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-113",
"sqKey": "S113",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-1131",
"sqKey": "S1131",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ <h2>Noncompliant Code Example</h2>
</pre>
<h2>See</h2>
<ul>
<li> <a href="http://cwe.mitre.org/data/definitions/546.html">MITRE, CWE-546</a> - Suspicious Comment </li>
<li> <a href="https://cwe.mitre.org/data/definitions/546.html">MITRE, CWE-546</a> - Suspicious Comment </li>
</ul>

Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1134",
"sqKey": "S1134",
"scope": "All",
"scope": "Main",
"securityStandards": {
"CWE": [
546
]
}
},
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1142",
"sqKey": "S1142",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-1143",
"sqKey": "S1143",
"scope": "All",
"scope": "Main",
"securityStandards": {
"CWE": [
584
],
"CERT": [
"ERR04-J."
]
}
},
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1144",
"sqKey": "S1144",
"scope": "All"
"scope": "All",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-116",
"sqKey": "S116",
"scope": "All"
"scope": "All",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-117",
"sqKey": "S117",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-1186",
"sqKey": "S1186",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-1192",
"sqKey": "S1192",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-1226",
"sqKey": "S1226",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-125",
"sqKey": "S125",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ <h2>Exceptions</h2>
</ul>
<h2>See</h2>
<ul>
<li> <a href="https://owasp.org/Top10/A01_2021-Broken_Access_Control/">OWASP Top 10 2021 Category A1</a> - Broken Access Control </li>
<li> <a href="https://www.owasp.org/index.php/Top_10-2017_A3-Sensitive_Data_Exposure">OWASP Top 10 2017 Category A3</a> - Sensitive Data Exposure
</li>
<li> <a href="https://wiki.sei.cmu.edu/confluence/x/OjdGBQ">CERT, MSC03-J.</a> - Never hard code sensitive information </li>
</ul>

Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"OWASP": [
"A3"
],
"CERT": [
"MSC03-J."
"OWASP Top 10 2021": [
"A1"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-134",
"sqKey": "S134",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-139",
"sqKey": "S139",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-1481",
"sqKey": "S1481",
"scope": "All"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1515",
"sqKey": "S1515",
"scope": "Main"
"scope": "Main",
"quickfix": "unknown"
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ <h2>Sensitive Code Example</h2>
</pre>
<h2>See</h2>
<ul>
<li> <a href="https://owasp.org/Top10/A03_2021-Injection/">OWASP Top 10 2021 Category A3</a> - Injection </li>
<li> <a href="https://www.owasp.org/index.php/Top_10-2017_A1-Injection">OWASP Top 10 2017 Category A1</a> - Injection </li>
<li> <a href="http://cwe.mitre.org/data/definitions/95.html">MITRE CWE-95</a> - Improper Neutralization of Directives in Dynamically Evaluated Code
('Eval Injection') </li>
<li> <a href="https://cwe.mitre.org/data/definitions/95.html">MITRE, CWE-95</a> - Improper Neutralization of Directives in Dynamically Evaluated
Code ('Eval Injection') </li>
</ul>

<!-- Make sure to not drop this deprecation section when doing bulk update (as well as updating S1523.json and Sonar way) -->
<!-- This rule is deprecated only for Python language, that's why we can't deprecate in a standard way (through Jira RSPEC) -->
<h2>Deprecated</h2>
<p>This rule is deprecated, and will eventually be removed.</p>

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
],
"OWASP": [
"A1"
],
"OWASP Top 10 2021": [
"A3"
]
}
},
"quickfix": "unknown"
}
Loading

0 comments on commit e2b05ef

Please sign in to comment.