kranack/lint-tool

Lint Tool CLI

Installs: 1 083

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Type:project

v0.4.0 2021-10-08 09:27 UTC

This package is auto-updated.

Last update: 2024-04-13 18:02:50 UTC


README

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