File tree Expand file tree Collapse file tree
python-checks/src/main/resources/org/sonar/l10n/py/rules/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
1010 " python3" ,
1111 " obsolete"
1212 ],
13- "defaultSeverity" : " Blocker " ,
13+ "defaultSeverity" : " Major " ,
1414 "ruleSpecification" : " RSPEC-2320" ,
1515 "sqKey" : " PrintStatementUsage"
1616}
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44 "status" : " ready" ,
55 "remediation" : {
66 "func" : " Constant\/ Issue" ,
7- "constantCost" : " 5 min "
7+ "constantCost" : " 5min "
88 },
99 "tags" : [
1010 " cwe" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments