Skip to main content

Utility to find dead functions within a codebase.

Project description

Pypi Build Status codecov MIT licensed

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


Download files

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

Source Distribution

dead_function_finder-1.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

dead_function_finder-1.1-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

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