Skip to content

flickerleap/phpmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Flickerleap mess detector

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