Clean Code Rules more
Rule | Prio | Description | Info |
---|---|---|---|
UndefinedVariable | 1 | link | |
ElseExpression | 3 | link | |
IfStatementAssignment | 3 | link | |
DuplicatedArrayKey | 3 | link | |
ErrorControlOperator | 3 | link | |
MissingImport | 3 | link | |
BooleanArgumentFlag | 4 | link |
Code Size Rules more
Rule | Prio | Description | Info |
---|---|---|---|
CyclomaticComplexity | 3 | link | |
NPathComplexity | 3 | link | |
ExcessiveClassComplexity | 3 | link | The maximum WMC tolerable for a class = 100 (50 default) |
ExcessiveParameterList | 3 | link | The parameter count reporting threshold = 15 (10 default) |
Controversial Rules more
Rule | Prio | Description | Info |
---|---|---|---|
Superglobals | 2 | link | |
CamelCaseClassName | 3 | link | |
CamelCasePropertyName | 3 | link | |
CamelCaseMethodName | 3 | link | |
CamelCaseParameterName | 3 | link | |
CamelCaseVariableName | 3 | link |
Design Rules more
Rule | Prio | Description | Info |
---|---|---|---|
NumberOfChildren | 3 | link | |
DepthOfInheritance | 3 | link | |
ExitExpression | 4 | link | |
EvalExpression | 2 | link | |
GotoStatement | 4 | link | |
DevelopmentCodeFragment | 2 | link | |
EmptyCatchBlock | 3 | link |
Naming Rules more
Rule | Prio | Description | Info |
---|---|---|---|
LongClassName | 3 | link | Maximum = 80 (40 default) |
ShortClassName | 3 | link | |
ShortVariable | 3 | link | |
LongVariable | 3 | link | Maximum = 60 (20 default) |
ShortMethodName | 3 | link | |
ConstructorWithNameAsEnclosingClass | 3 | link | |
ConstantNamingConventions | 3 | link | |
BooleanGetMethodName | 4 | link |
Unused Code Rules Rules more
Rule | Prio | Description | Info |
---|---|---|---|
UnusedPrivateField | 4 | link | |
UnusedPrivateMethod | 4 | link | |
UnusedLocalVariable | 4 | link |