There is no license information available for the latest version (0.1) of this package.

FlickerLeap php mess detector

0.1 2018-10-04 14:26 UTC

This package is not auto-updated.

Last update: 2024-11-14 19:20:18 UTC


README

This project contains a ruleset to be used with phpmd https://github.com/phpmd/phpmd

Installation

$ composer global require flickerleap/phpmd

Usage

$ ~/.composer/vendor/bin/phpmd path/to/src text ~/.composer/vendor/flickerleap/phpmd/ruleset.xml

Rules

  • All phpmd rules
  • Excluded static usage of classes due to laravels fantastic service container https://laravel.com/docs/5.6/facades
  • Excluded some short variable names such as $to in a mailable
  • Excluded all unused parameters due to common usage of $request in controller functions