Skip to content
SublimeLinter plugin for php, using phpmd.
Python
Branch: master
Clone or download
Latest commit b7b2d79 Apr 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
messages cleanup for SL4 Apr 2, 2018
.flake8
.travis.yml Add `.flake8` config file Apr 26, 2018
LICENSE init plugin Dec 18, 2013
README.md update readme Apr 2, 2018
linter.py Do not capture 'filename' Apr 13, 2019
messages.json cleanup for SL4 Apr 2, 2018

README.md

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

You can’t perform that action at this time.