定制 boekkooi/php-cs-fixer-checker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boekkooi/php-cs-fixer-checker

Composer 安装命令:

composer require boekkooi/php-cs-fixer-checker

包简介

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

README 文档

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
    ))
;

统计信息

  • 总下载量: 172
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-27