brotkrueml/coding-standards

Coding standards for the brotkrueml projects

v6.1.0 2024-10-08 16:42 UTC

This package is auto-updated.

Last update: 2024-11-08 16:53:38 UTC


README

Coding standards for the brotkrueml projects based on symplify/easy-coding-standard.

Installation

Install the package via Composer:

composer req brotkrueml/coding-standards --dev

Usage

Just import the common rule set and add your additional configuration (like paths, skip, etc.), for example:

<?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 ...

    ;
};