vile-phpmd
v0.3.3
Published
Identify common style and maintainability issues in your PHP code.
Downloads
11
Readme
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-phpmd
Config
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.xml
Exclude
phpmd:
config:
exclude: "..." || [ "..." ]
Suffixes
phpmd:
config:
suffixes: "..." || [ "..." ]
Minimum Priority
phpmd:
config:
minimumpriority: 1
Strict
phpmd:
config:
strict: true
Versioning
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.
bin
houses any shell based scriptssrc
is es6+ syntax compiled with Babellib
generated js library
Developing
cd vile-phpmd
npm install
# install phpmd cli globally
npm run dev
npm test