vile-phpmd v0.3.3
vile-phpmd

A Vile plugin for identifying common style and maintainability issues in your PHP code (via PHPMD).
Requirements
Installation
Currently, you need to have phpmd installed manually.
For example, on Arch:
yaourt -Sa phpmd
npm i -D vile vile-phpmdConfig
There should be (more or less) a one to one relationship
with the phpmd cli.
Paths
phpmd:
config:
paths: "a/**" || [ "a/**", "b/**" ]Rulesets
phpmd:
config:
rulesets: "codesize" || [ "codesize", "controversial" ]Ruleset File
phpmd:
config:
rulesets: .phpmd.xmlExclude
phpmd:
config:
exclude: "..." || [ "..." ]Suffixes
phpmd:
config:
suffixes: "..." || [ "..." ]Minimum Priority
phpmd:
config:
minimumpriority: 1Strict
phpmd:
config:
strict: trueVersioning
This project uses Semver.
Licensing
This project is licensed under the MPL-2.0 license.
Any contributions made to this project are made under the current license.
Contributions
Current list of Contributors.
Any contributions are welcome and appreciated!
All you need to do is submit a Pull Request.
- Please consider tests and code quality before submitting.
- Please try to keep commits clean, atomic and well explained (for others).
Issues
Current issue tracker is on GitHub.
Even if you are uncomfortable with code, an issue or question is welcome.
Code Of Conduct
By participating in this project you agree to our Code of Conduct.
Architecture
This project is currently written in JavaScript. PHPMD provides an XML CLI output that is currently used until a more ideal option is implemented.
binhouses any shell based scriptssrcis es6+ syntax compiled with Babellibgenerated js library
Developing
cd vile-phpmd
npm install
# install phpmd cli globally
npm run dev
npm test