dead-function-finder-1.1
توضیحات
Utility to find dead functions within a codebase.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | dead-function-finder-1.1 |
| نام | dead-function-finder |
| نسخه کتابخانه | 1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gabriel Bordeaux |
| ایمیل نویسنده | pypi@gab.lc |
| آدرس صفحه اصلی | https://github.com/gabfl/dead_function_finder |
| آدرس اینترنتی | https://pypi.org/project/dead-function-finder/ |
| مجوز | MIT |
dead_function_finder
====================
|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
~~~~~~~~~
.. code:: bash
pip3 install dead-function-finder
From sources
~~~~~~~~~~~~
.. code:: bash
git clone https://github.com/gabfl/dead_function_finder.git && cd dead_function_finder
pip3 install .
Usage
-----
.. code:: bash
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.
.. |Pypi| image:: https://img.shields.io/pypi/v/dead_function_finder.svg
:target: https://pypi.org/project/dead-function-finder
.. |Build Status| image:: https://github.com/gabfl/dead_function_finder/actions/workflows/ci.yml/badge.svg?branch=main
:target: https://github.com/gabfl/dead_function_finder/actions
.. |codecov| image:: https://codecov.io/gh/gabfl/dead_function_finder/branch/main/graph/badge.svg
:target: https://codecov.io/gh/gabfl/dead_function_finder
.. |MIT licensed| image:: https://img.shields.io/badge/license-MIT-green.svg
:target: https://raw.githubusercontent.com/gabfl/dead_function_finder/main/LICENSE
نحوه نصب
نصب پکیج whl dead-function-finder-1.1:
pip install dead-function-finder-1.1.whl
نصب پکیج tar.gz dead-function-finder-1.1:
pip install dead-function-finder-1.1.tar.gz