Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.64 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.64 KB

Lint Tool

Main workflow Build Status GitHub tag (latest SemVer)

How it works

This lint tool use your PHP binaries to lint your sources files. The first step to use it is to setup your environment by launching the install command. During the installation, it'll scan your computer searching for PHP binaries and save paths in your configuration.

This tool mainly supports Homebrew, other tools may or may not be well supported.

Install

Install composer dependencies with composer install and run ./lint-tools install.

Update existing installation

To update your configuration, run ./lint-tools install --force.

List cached PHP instances

To list your PHP instances cached during your last installation, run ./lint-tools install --list

Usage

After the install, you could run the lint command ./lint-tools lint [-m <min>] [--exclude] [--colors] [--full] [--no-local] <folder> where folder is the directory containing PHP sources to lint. The min option can be used to define the minimal PHP version to lint with. Semantic Versioning format is used.

Documentation