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

Sublime​Linter-phpmd

by SublimeLinter ST3

SublimeLinter plugin for php, using phpmd.

Details

Installs

  • Total 17K
  • Win 9K
  • OS X 5K
  • Linux 4K
Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25
Windows 1 3 5 6 6 4 6 2 3 9 6 5 7 6 3 6 8 8 9 4 10 2 1 10 1 2 7 9 3 2 4 8 5 4 5 1 2 5 4 3 8 1 6 4 6 7
OS X 1 1 3 4 3 0 2 1 1 1 1 1 1 1 1 2 3 1 2 5 1 2 0 2 4 2 1 5 2 1 1 0 3 0 4 0 0 1 2 1 4 2 2 0 8 2
Linux 0 1 0 0 4 1 2 1 0 3 1 2 1 0 2 1 2 3 1 3 0 1 0 2 3 4 7 4 0 1 3 1 2 0 3 0 2 2 3 5 5 2 2 0 0 2

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-phpmd

Build Status

This linter plugin for SublimeLinter provides an interface to phpmd. 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 installing this plugin, ensure that phpmd is installed on your system. To install phpmd, do the following:

  1. Install php.

  2. Install pear.

  3. Install phpmd by typing the following in a terminal:

pear channel-discover pear.phpmd.org
   pear channel-discover pear.pdepend.org
   pear install --alldeps phpmd/PHP_PMD

Alternative installation using composer:

  1. Install composer.
  2. Install phpmd using below command:
composer global require phpmd/phpmd
  1. Make sure composer global bin directory is available in $PATH
export PATH=~/.composer/vendor/bin:$PATH

Settings