rules: # Rules (http://docs.oclint.org/en/stable/rules/index.html) # Basic (http://docs.oclint.org/en/stable/rules/basic.html) - BitwiseOperatorInConditional - BrokenNullCheck - BrokenNilCheck - BrokenOddnessCheck - CollapsibleIfStatements - ConstantConditionalOperator - ConstantIfExpression - DeadCode - DoubleNegative - ForLoopShouldBeWhileLoop - GotoStatement - JumbledIncrementer - MisplacedNullCheck - MisplacedNilCheck - MultipleUnaryOperator - ReturnFromFinallyBlock - ThrowExceptionFromFinallyBlock # Cocoa (http://docs.oclint.org/en/stable/rules/cocoa.html) - MissingHashMethod - MissingCallToBaseMethod - CallingProhibitedMethod - CallingProtectedMethod - MissingAbstractMethodImplementation # Convention (http://docs.oclint.org/en/stable/rules/convention.html) - AvoidBranchingStatementAsLastInLoop - ProblematicBaseClassDestructor - UnnecessaryDefaultStatement - MisplacedDefaultLabel - DestructorOfVirtualClass - InvertedLogic - MissingBreakInSwitchStatement - NonCaseLabelInSwitchStatement - AssignIvarOutsideAccessors - ParameterReassignment - PreferEarlyExit - MissingDefaultStatement - TooFewBranchesInSwitchStatement # Design (http://docs.oclint.org/en/stable/rules/design.html) - AvoidDefaultArgumentsOnVirtualMethods - AvoidPrivateStaticMembers # Empty (http://docs.oclint.org/en/stable/rules/empty.html) - EmptyCatchStatement - EmptyDoWhileStatement - EmptyElseBlock - EmptyFinallyStatement - EmptyForStatement - EmptyIfStatement - EmptySwitchStatement - EmptyTryStatement - EmptyWhileStatement # Migration (http://docs.oclint.org/en/stable/rules/migration.html) - UseBoxedExpression - UseContainerLiteral - UseNumberLiteral - UseObjectSubscripting # Naming (http://docs.oclint.org/en/stable/rules/naming.html) - LongVariableName - ShortVariableName # Redundant (http://docs.oclint.org/en/stable/rules/redundant.html) - RedundantConditionalOperator - RedundantIfStatement - RedundantLocalVariable - RedundantNilCheck - UnnecessaryElseStatement - UnnecessaryNullCheckForDealloc - UselessParentheses # Size (http://docs.oclint.org/en/stable/rules/size.html) - HighCyclomaticComplexity - LongClass - LongLine - LongMethod - HighNcssMethod - DeepNestedBlock - HighNPathComplexity - TooManyFields - TooManyMethods - TooManyParameters # Unused (http://docs.oclint.org/en/stable/rules/unused.html) - UnusedLocalVariable - UnusedMethodParameter rule-configurations: # Rule Thresholds (http://docs.oclint.org/en/stable/howto/thresholds.html) - key: CYCLOMATIC_COMPLEXITY value: 10 - key: LONG_CLASS value: 1000 - key: LONG_LINE value: 100 - key: LONG_METHOD value: 50 - key: LONG_VARIABLE_NAME value: 20 - key: MAXIMUM_IF_LENGTH value: 15 - key: MINIMUM_CASES_IN_SWITCH value: 3 - key: NPATH_COMPLEXITY value: 200 - key: NCSS_METHOD value: 30 - key: NESTED_BLOCK_DEPTH value: 5 - key: SHORT_VARIABLE_NAME value: 3 - key: TOO_MANY_FIELDS value: 20 - key: TOO_MANY_METHODS value: 30 - key: TOO_MANY_PARAMETERS value: 10