Method/function lines counter (as RuboCop in Ruby)

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rubocop

    A Ruby static code analyzer and formatter, based on the community Ruby style guide.

  • 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.

  • pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

  • 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts