phplint
phplint
phplint is a node wrapper around the native php linter that allows for parallel linting and integration with build systems like Grunt, Gulp and more.
Usage
CLI
$ npm i -g phplint$ phplint '**/*.php'
Paths and filenames are parsed using globby, so the following would work as well:
$ phplint '**/*.php' '!vendor/**'
Node
var phplint = lint; ;
NPM
$ npm test
Grunt
Configure cache directories
This module uses the cache-swap
module to cache already linted files.
You can configure the cache directories via the cacheDirName
and the tmpDir
options.
Both options will be passed to the CacheSwap instance when created.
module { ; grunt; grunt;};
$ grunt test
Gulp
The same options that can be used in Grunt can be used in Gulp too.
var gulp = ;var phplint = lint; gulp; gulp;
$ gulp test