elodgy/coding-standard

此包已被废弃且不再维护。作者建议使用 e-lodgy/coding-standard 包。

E-Lodgy 使用的编码标准

v1.1.6 2023-10-16 23:51 UTC

README

CI

E-Lodgy 使用的编码标准配置。

安装与使用

  1. 安装此包
$ composer require --dev e-lodgy/coding-standard
  1. 将配置文件导入您的 ecs.php
$config->import('vendor/e-lodgy/coding-standard/ecs.php');

示例配置(ecs.php)

use Symplify\EasyCodingStandard\Config\ECSConfig;
   
return static function (ECSConfig $config): void {
    $config->import('vendor/e-lodgy/coding-standard/ecs.php');
    $config->paths([
      __DIR__ . '/src', // Your project path
      __DIR__ . '/tests', // Your project test paths
      __DIR__ . '/ecs.php', // Your own ecs config file
    ]);
};