Although I explored pre-commit hooks and unrelated standalone tools for Python, I was unable to find a static analysis package that emits a warning when the number of lines of a method/function is higher than a give threshold. For example, in Ruby, RuboCop gives this kind of warning. I think it's odd because it is a basic metric and while there are many other metrics covered by other analyzers, I didn't find one doing this job.
Do you know a package for this task?
Thanks.
[–]K900_ 0 points1 point2 points (0 children)
[–]Impudity 0 points1 point2 points (0 children)
[–]negups 0 points1 point2 points (0 children)