3 ms·
I don't know any other linter for any other language that complains about too many methods (or too many lines in a method, or too long variable names, etc) in a
by sly010 10y ago
I don't know any other linter for any other language that complains about too many methods (or too many lines in a method, or too long variable names, etc) in a class.
I should know my domain better than pylint.
- tclancy 10y agoIt's not specific to a language. Those are all code complexity measures. When you see those flags you should at least consider refactoring (and if things are best the way they are you can put a pylint-ignore comment with an explanation right above it).
- web007 10y agoPerl generates McCabe scores, and can arbitrarily limit on complexity. That's a better proxy than "number of lines", but tends to be equivalent.
- frobozz 10y agoPMD: http://pmd.sourceforge.net/snapshot/pmd-java/rules/java/codesize.html#ExcessivePublicCount http://pmd.sourceforge.net/snapshot/pmd-java/rules/java/code... Scalastyle: http://www.scalastyle.org/rules-0.8.0.html#org_scalastyle_scalariform_NumberOfMethodsInTypeChecker http://www.scalastyle.org/rules-0.8.0.html#org_scalastyle_sc... JSHint: http://jshint.com/docs/options/#maxstatements http://jshint.com/docs/options/#maxstatements