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
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

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