Utility to find dead functions within a codebase.
Project description
Utility to locate functions that are declared but never used in a codebase.
Languages supported
Python
PHP
Installation
Using PIP
pip3 install dead-function-finder
From sources
git clone https://github.com/gabfl/dead_function_finder.git && cd dead_function_finder
pip3 install .
Usage
dead_function_finder --path "~/my/codebase" --language python
# Specific patterns can be excluded with --exclude:
dead_function_finder --path "~/my/codebase" --language python --exclude '/venv/,/unittest/'
Limitations
The program searches for unique function names; it is not currently aware of class context.
Functions called with magic methods or whose names are dynamically resolved might result in false positives.
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
Close
Hashes for dead_function_finder-1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e56cdf93736b8711ac56a1785c14037bf9402c353668418986ac9252ace5e2d |
|
MD5 | 6d02a5040598d188846ecba68bc65e8f |
|
BLAKE2b-256 | 0843fed286dd78bbffa4ae69f3855bbda40826965f3f19a832d5b8e344f4df6c |