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

This package is not auto-updated.

Last update: 2024-05-11 16:23:42 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
    ))
;