Rule Index¶
OCLint 0.6 includes 42 rules.
Basic¶
- BitwiseOperatorInConditional
- BrokenOddnessCheck
- CollapsibleIfStatements
- ConstantConditionalOperator
- ConstantIfExpression
- DeadCode
- DoubleNegative
- ForLoopShouldBeWhileLoop
- GotoStatement
- MultipleUnaryOperator
- ReturnFromFinallyBlock
- ThrowExceptionFromFinallyBlock
Convention¶
- DefaultLabelNotLastInSwitchStatement
- InvertedLogic
- MissingBreakInSwitchStatement
- NonCaseLabelInSwitchStatement
- ParameterReassignment
- SwitchStatementsShouldHaveDefault
- TooFewBranchesInSwitchStatement
Empty¶
- EmptyCatchStatement
- EmptyDoWhileStatement
- EmptyElseBlock
- EmptyFinallyStatement
- EmptyForStatement
- EmptyIfStatement
- EmptySwitchStatement
- EmptyTryStatement
- EmptyWhileStatement
Redundant¶
- RedundantConditionalOperator
- RedundantIfStatement
- RedundantLocalVariable
- UnnecessaryElseStatement
- UselessParentheses
Size¶
- CyclomaticComplexity
- LongClass
- LongLine
- LongMethod
- NcssMethodCount
- NestedBlockDepth
- NPathComplexity
Unused¶
- UnusedLocalVariable
- UnusedMethodParameter