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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file dead_function_finder-1.1.tar.gz.

File metadata

  • Download URL: dead_function_finder-1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for dead_function_finder-1.1.tar.gz
Algorithm Hash digest
SHA256 0b5a6d3d0fbff9d3a5c80979a269eb89b2a2119b85d62bbf8153fad63398af3a
MD5 5f9d7e60a12046064fcf45c7db8d4fbe
BLAKE2b-256 b672ebb9e1159f339e046893de7148d8f8011e0958336d639a729b6d7e97ba16

See more details on using hashes here.

File details

Details for the file dead_function_finder-1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: dead_function_finder-1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for dead_function_finder-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7e56cdf93736b8711ac56a1785c14037bf9402c353668418986ac9252ace5e2d
MD5 6d02a5040598d188846ecba68bc65e8f
BLAKE2b-256 0843fed286dd78bbffa4ae69f3855bbda40826965f3f19a832d5b8e344f4df6c

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