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.
Metadata
Release files for dead-function-finder 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dead_function_finder-1.1.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dead_function_finder-1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / dead_function_finder-1.1.tar.gz
| Download URL | dead_function_finder-1.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b5a6d3d0fbff9d3a5c80979a269eb89b2a2119b85d62bbf8153fad63398af3a
|
|
BLAKE2b-256 checksum How to use checksums |
b672ebb9e1159f339e046893de7148d8f8011e0958336d639a729b6d7e97ba16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
|
Release files / dead_function_finder-1.1-py2.py3-none-any.whl
| Download URL | dead_function_finder-1.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7e56cdf93736b8711ac56a1785c14037bf9402c353668418986ac9252ace5e2d
|
|
BLAKE2b-256 checksum How to use checksums |
0843fed286dd78bbffa4ae69f3855bbda40826965f3f19a832d5b8e344f4df6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
|