Skip to main content

Identify long functions to refactor with this function analyser

Project description

function-analyser

There is much debate about the ideal length of a function or method.

E.g.

The first rule of functions is that they should be small.
The second rule of functions is that they should be smaller than that.
Functions should not be 100 lines long.
Functions should hardly ever be 20 lines long.

Robert (Bob) Martin, Clean Code: A Handbook of Agile Software Craftsmanship (2008) as cited in https://softwareengineering.stackexchange.com/questions/133404/what-is-the-ideal-length-of-a-method-for-you

Common sense, therefore, offers one solution.

However, I have taken a different approach in running analysis on many codebases and using this to calibrate a functional analysis tool to run on your own codebase.

The results are encapsulated in this useful function analysis tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

function-analyser-0.0.5.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

function_analyser-0.0.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file function-analyser-0.0.5.tar.gz.

File metadata

  • Download URL: function-analyser-0.0.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for function-analyser-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7677894e27be0cf4469e2beb6bd2119ebec4b74e246e8efa407b623809b78f60
MD5 13bc7356bb14ca166bdf35e02a7eb81b
BLAKE2b-256 96b9091a3fe28dfef69df0010e7ae66be67be6591429a025f9065d5377a84160

See more details on using hashes here.

File details

Details for the file function_analyser-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for function_analyser-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 587c223c2a4f326841b2124235b18c65e410498eaad2d5cf905e445ac0f0065d
MD5 a81340e3f4df6fea4f5dc93d2102bc39
BLAKE2b-256 7079df1c0d68b25848537590a8a5b17dcd8e23b35349b6f8dc8557abeccfa682

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page