motley/ecs-config

Rule Set for EasyCodingStandard

2.1 2023-10-21 10:07 UTC

This package is auto-updated.

Last update: 2024-04-21 11:11:32 UTC


README

An opinionated rule set for EasyCodingStandard

Installation

composer require --dev motley/ecs-config

Usage

In your ecs.php:

// …
use Motley\EasyCodingStandard\SetList as MotleySetList

return static function (ECSConfig $ecsConfig): void {
    // Define paths, cache directory etc

    $ecsConfig->sets([MotleySetList::MOTLEY]);

    // Override anything you wish, add exclusions etc
}