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

Sublime​Linter-phplint

by SublimeLinter ST3

SublimeLinter plugin for PHP, using phplint.

Details

Installs

  • Total 68K
  • Win 35K
  • OS X 20K
  • Linux 12K
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 May 16 May 15 May 14 May 13
Windows 23 39 24 28 45 39 50 44 50 24 26 48 48 56 41 36 24 38 48 55 41 47 47 22 33 40 40 35 32 49 25 27 35 48 44 52 35 21 38 52 40 45 58 45 23 30
OS X 12 16 8 7 13 19 14 17 16 5 11 18 22 18 23 18 5 8 15 22 25 20 15 6 12 19 19 12 26 13 13 10 20 16 20 26 35 9 6 23 24 13 21 20 13 10
Linux 4 14 6 7 15 16 11 15 14 6 8 21 19 18 12 14 4 10 7 20 14 16 16 7 8 10 12 12 16 13 7 5 13 14 20 18 13 9 12 15 11 19 13 13 14 14

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-phplint

Build Status

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

Installation

SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions here.

Linter installation

Before installing this plugin, you must ensure that phplint is installed on your system. To install phplint, download and run the appropriate installer from the download page. On Mac OS X, the best option is to install Homebrew and then enter the following in a terminal:

brew install homebrew/php/phplint

If installation via brew fails, see this page for possible solutions.

Note: This plugin requires phplint 2.0 or later.

Linter configuration

In order for phplint to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.

Once phplint is installed and configured, you can proceed to install the SublimeLinter-phplint plugin if it is not yet installed.

Plugin installation

Please use Package Control to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.

To install via Package Control, do the following:

  1. Within Sublime Text, bring up the Command Palette and type install. Among the commands you should see Package Control: Install Package. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.

  2. When the plugin list appears, type phplint. Among the entries you should see SublimeLinter-phplint. If that entry is not highlighted, use the keyboard or mouse to select it.

Settings

For general information on how SublimeLinter works with settings, please see Settings. For information on generic linter settings, please see Linter Settings.

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the plugin repository.
  2. Hack on a separate topic branch created from the latest master.
  3. Commit and push the topic branch.
  4. Make a pull request.
  5. Be patient. ;-)

Please note that modications should follow these coding guidelines:

  • Indent is 4 spaces.
  • Code should pass flake8 and pep257 linters.
  • Vertical whitespace helps readability, don’t be afraid to use it.

Thank you for helping out!