ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-phpcs

by SublimeLinter ST3 Trending

SublimeLinter plugin for PHP, using phpcs.

Details

Installs

  • Total 93K
  • Win 50K
  • Mac 24K
  • Linux 19K
Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17
Windows 1 6 11 8 10 1 3 5 10 4 0 7 3 4 1 7 3 5 4 2 6 5 13 6 5 3 4 4 4 8 5 7 1 3 3 3 9 8 5 9 4 6 6 8 5 9
Mac 0 4 13 2 1 5 1 2 2 8 1 3 5 2 2 5 4 2 7 1 0 1 4 2 1 2 0 0 3 2 3 1 0 1 1 4 2 8 2 2 3 3 3 2 1 2
Linux 0 4 1 0 1 0 1 4 3 3 6 0 2 2 1 1 0 1 4 3 0 6 1 0 1 0 1 2 0 4 1 0 1 0 2 1 3 1 1 1 0 0 2 2 2 3

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-phpcs

Build Status

This linter plugin for SublimeLinter provides an interface to phpcs. It will be used with files that have the “PHP”, “HTML” and “HTML5” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before using this plugin, ensure that phpcs is installed on your system, preferably somewhere in your PATH. To install phpcs, follow the instructions on https://github.com/squizlabs/PHP_CodeSniffer#installation.

Settings

Use the "args" setting to configure the coding standard, and/or to display the sniff codes for each error:

{
    "args": [
        "--standard=PEAR", // code standard
        "-s"               // display sniff codes
    ]
}

Per-project Standards

You can set up your project settings to use a specific standard using the following:

{
    "settings": {
        "SublimeLinter.linters.phpcs.args": "--standard='${folder}/phpcs.xml'"
    }
}