boekkooi / php-cs-fixer-checker
A extension for the Broadway package with extra's like tactician usage and other tweaks
dev-master / 0.1.x-dev
2015-12-02 13:14 UTC
Requires
- php: >=5.5
- fabpot/php-cs-fixer: ~2.0
- symfony/translation: ~2.3
- symfony/yaml: ~2.3
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is not auto-updated.
Last update: 2024-10-26 18:59:59 UTC
README
This project is currently just a proof of concept
This is a extension of the PHP Coding Standards Fixer project. It adds a set of checks to the fixer because some times the fixer can't fix a problem but you do want it to report that problem.
The main reason for adding this extension and not using PHP CodeSniffer is because I can't handle writing custom checks for it.
Example .php_cs
<?php return \Boekkooi\CS\Config::create() ->setDir(__DIR__.'/src') ->checkers(array( // new \Boekkooi\CS\Checker\Contrib\FinalClassChecker(), // new \Boekkooi\CS\Checker\Contrib\NoMethodWithArgumentsChecker(), new \Boekkooi\CS\Checker\Psr4Checker(), )) ->setRules(array( '@PSR2' => true )) ;