Name | Checked | Synopsis |
---|
6@101
|
 |
Do not change a loop variable inside a for loop block |
6@102
|
|
Update loop variables close to where the loop condition is specified |
6@103
|
 |
All flow control primitives (if, else, while, for, do, switch) shall be followed by a block, even if it is empty |
6@105
|
 |
Ensure switch statements are exhaustive |
6@106
|
 |
Finish every if-else-if statement with an else part |
6@109
|
 |
Don't return a function at an unexpected location |
6@112
|
 |
Do not make explicit comparisons to true or false |
6@115
|
 |
Do not access a modified object more than once in an expression |
6@118
|
|
Do not use selection statements (if, switch) instead of a simple assignment or initialization |
6@119
|
 |
Avoid locking on a public type |
6@120
|
|
Avoid conditions with double negatives |
6@121
|
|
Don't use parameters as temporary variables |
6@191
|
 |
Do not dereference null |
6@201
|
 |
The cyclomatic complexity of a method should not exceed its configured maximum. |