Identify long functions to refactor with this function analyser
Project description
function-analyser
TL;DR;
pip install 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file function-analyser-0.0.13.tar.gz
.
File metadata
- Download URL: function-analyser-0.0.13.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a9f2fc658d8824ff288afd5006a10fa6b15c0524cbcba6ca292ff0a5429867b |
|
MD5 | 19138abc68276d28e680b82c9851bfb2 |
|
BLAKE2b-256 | 173d107e8af2a18d32f582ec81cb280be06ba167308197d06d8a9307961567e0 |
File details
Details for the file function_analyser-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: function_analyser-0.0.13-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e700d475af8769884744d317585197d6052981c6d42a595ea88e14843495857c |
|
MD5 | 791aa80f7e5edb6e031edc6172ec74a4 |
|
BLAKE2b-256 | 95ee5ef4757eeae8d745010371c29fc7b30f6f5ad9b31ab9e2b793405aa89798 |