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 75K
  • Win 40K
  • OS X 22K
  • Linux 13K
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 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
Windows 41 55 42 46 55 31 27 41 50 24 71 46 34 37 41 54 51 45 55 32 36 38 45 41 62 54 36 42 50 58 49 38 64 33 43 88 106 62 43 31 24 39 33 48 29 56
OS X 16 19 12 26 16 8 6 19 20 16 17 12 12 15 24 13 23 13 22 16 16 20 25 32 25 18 11 7 25 24 20 24 17 14 15 25 46 25 22 12 6 5 19 17 11 7
Linux 15 9 23 12 11 11 7 19 19 9 17 18 8 9 19 19 14 7 11 9 8 16 11 8 13 17 11 10 11 13 16 24 18 15 24 25 31 17 19 9 9 10 22 16 15 12

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!