Skip to content

e-lodgy/coding-standard

Repository files navigation

Coding Standard

CI

Coding standard configuration used by E-Lodgy.

Installation & usage

  1. Install this package:
$ composer require --dev e-lodgy/coding-standard
  1. Import the configuration file in your ecs.php:
$config->import('vendor/e-lodgy/coding-standard/ecs.php');

Example config (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
    ]);
};