I think in OCLint, the following rules should be disabled.
- Size <http://docs.oclint.org/en/stable/rules/size.html> - HighCyclomaticComplexity <http://docs.oclint.org/en/stable/rules/size.html#highcyclomaticcomplexity> - LongClass <http://docs.oclint.org/en/stable/rules/size.html#longclass> - LongLine <http://docs.oclint.org/en/stable/rules/size.html#longline> - LongMethod <http://docs.oclint.org/en/stable/rules/size.html#longmethod> - HighNcssMethod <http://docs.oclint.org/en/stable/rules/size.html#highncssmethod> - DeepNestedBlock <http://docs.oclint.org/en/stable/rules/size.html#deepnestedblock> - HighNPathComplexity <http://docs.oclint.org/en/stable/rules/size.html#highnpathcomplexity> - TooManyFields <http://docs.oclint.org/en/stable/rules/size.html#toomanyfields> - TooManyMethods <http://docs.oclint.org/en/stable/rules/size.html#toomanymethods> - TooManyParameters <http://docs.oclint.org/en/stable/rules/size.html#toomanyparameters> - Naming <http://docs.oclint.org/en/stable/rules/naming.html> - LongVariableName <http://docs.oclint.org/en/stable/rules/naming.html#longvariablename> - ShortVariableName <http://docs.oclint.org/en/stable/rules/naming.html#shortvariablename> 王仁敏 <[email protected]> 于2019年7月19日周五 上午9:50写道: > Hi there, > > > I'm trying to add some static lint checks to CI, now OCLint(for c, c++ > and objective-c) and AndroidLint already get ready in CI. > > But OCLint and AndroidLint have too many rules, many of which have little > impact. so maybe should we discuss about which rules to keep or which rules > to remove. > > > OCLint Rule List: http://docs.oclint.org/en/stable/rules/index.html > > AndroidLint Rule List: http://tools.android.com/tips/lint-checks > > AndroidLint Help: http://www.androiddocs.com/tools/help/lint.html > > > The below is the doctest > <https://github.com/onqtam/doctest/blob/master/.travis.yml> reference for > OCLint: > > ``` > > -disable-rule=ShortVariableName \ > > -disable-rule=LongLine \ > > -disable-rule=LongMethod \ > > -disable-rule=HighNcssMethod \ > > -disable-rule=LongVariableName \ > > -disable-rule=HighCyclomaticComplexity \ > > -disable-rule=HighNPathComplexity \ > > -disable-rule=UnusedLocalVariable \ > > -disable-rule=DoubleNegative \ > > -disable-rule=MultipleUnaryOperator \ > > -disable-rule=DeepNestedBlock \ > > ``` > > > Best Wishes. > > RenMin Wang > > >
