boekkooi/php-cs-fixer-checker

A extension for the Broadway package with extra's like tactician usage and other tweaks

Maintainers

Package info

github.com/boekkooi/PHP-CS-Checker

pkg:composer/boekkooi/php-cs-fixer-checker

Statistics

Installs: 172

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 0

dev-master / 0.1.x-dev 2015-12-02 13:14 UTC

This package is not auto-updated.

Last update: 2026-03-15 02:46:32 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
    ))
;