AtomLinter / linter-phpmd

Atom linter plugin for php, using phpmd.
21 stars 4 forks source link

linter-phpmd

Build Status Dependency Status apm apm

This linter plugin for Linter provides an interface to phpmd. It will be used with files that have the "PHP" syntax or PHP embedded within HTML. A list of the rules checked and their definitions can be found here: http://phpmd.org/rules/index.html

Installation

phpmd installation

Before installing this plugin, you must ensure that phpmd is installed on your system. For detailed instructions see phpmd.org, the simplified steps are:

  1. Install php.
  2. Install Composer.
  3. Install phpmd by typing the following in a terminal:
    composer global require phpmd/phpmd

After verifying that phpmd works from your terminal, proceed to install the linter-phpmd plugin.

Plugin installation

$ apm install linter-phpmd