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

Sublime​Linter-phpcs

by SublimeLinter ST3

SublimeLinter plugin for PHP, using phpcs.

Details

Installs

  • Total 85K
  • Win 46K
  • Mac 22K
  • Linux 17K
Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5
Windows 1 11 11 13 9 17 18 13 15 13 14 13 10 14 5 11 18 15 15 15 1 14 11 10 13 14 15 6 8 11 12 14 7 11 8 8 19 14 10 19 14 14 11 14 19 17
Mac 3 3 3 5 4 4 3 2 8 5 6 6 3 3 6 9 3 5 7 2 1 5 9 2 13 7 8 4 3 6 9 3 6 4 11 4 7 5 6 8 5 1 2 1 4 8
Linux 1 5 8 5 6 13 7 6 7 5 2 6 1 3 2 6 4 13 7 3 2 4 5 4 7 7 5 4 2 2 7 1 7 1 3 1 5 5 2 5 8 2 3 4 2 10

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'"
    }
}