brotkrueml/coding-standards

brotkrueml项目的编码规范

v6.0.0 2024-08-24 20:20 UTC

This package is auto-updated.

Last update: 2024-08-24 20:36:27 UTC


README

基于symplify/easy-coding-standard的brotkrueml项目编码规范。

安装

使用Composer安装此包

composer req brotkrueml/coding-standards --dev

用法

只需导入通用规则集并添加您的附加配置(如路径、跳过等),例如

<?php

declare (strict_types=1);

use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
    ->withSets([
        __DIR__ . '/vendor/brotkrueml/coding-standards/config/common.php',
    ])
    ->withParallel()
    ->withPaths([
        __DIR__ . '/src',
        __DIR__ . '/tests',
        // ...
    ])

    // ... additional configuration ...

    ;
};