https://github.com/genkiroid/turpan
Turpan will check that whether deletion of PHP require statements is safe.
https://github.com/genkiroid/turpan
Last synced: 3 months ago
JSON representation
Turpan will check that whether deletion of PHP require statements is safe.
- Host: GitHub
- URL: https://github.com/genkiroid/turpan
- Owner: genkiroid
- Created: 2016-07-24T07:03:13.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T05:48:11.000Z (over 2 years ago)
- Last Synced: 2025-01-13T03:47:03.706Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turpan
[](https://github.com/genkiroid/turpan/actions/workflows/ci.yml)
Turpan will check that whether deletion of PHP require statements is safe.
## Usage
```shell
vendor/bin/turpan {from rev} HEAD
```If deleted (include|include_once|require|require_once) statements was not pure class file reference, Turpan show warnings.
Pure class file means that only contains class declaration and (include|include_once|require|require_once) statements.## Environment variables
name | example | default | description
--- | --- | --- | ---
TURPAN_SHOW_DETAIL | OFF | - | Not display code in report.
IGNORE_PATTERN | /tests/ | - | Ignore matched path.
DOC_ROOT_DIR | app | - | Specify document root.