simplephplint

1.0.8 • Public • Published

simplephplint

simplephplint is a node wrapper around the native php linter.

Usage

CLI

$ npm i -g simplephplint
$ simplephplint '**/*.php'

Paths and filenames are parsed using globby, so the following would work as well:

$ simplephplint '**/*.php' '!vendor/**'

Configuration

After running simplephplint --init, you'll have a .phplintrc.json file in your directory. In it, you'll see some rules configured like this:

{
    "input": "./**/*.php",
    "filter": [],
    "ignoreComments": false,
    "syncLimit": 20,
    "rules": {
        "no_log": [
            "var_dump",
            "print_r"
        ]
    }
}
 

Issues/Contribution

You can open an issue on the github repo, or contact me directly by email.

Help

Please, if you are using this package, let me know. I am interested to know what you think of it, even if it was on a tiny side-project.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i simplephplint

Weekly Downloads

4

Version

1.0.8

License

MIT

Last publish

Collaborators

  • dgxxlhel