Skip to content

Configured Rules #232

@u01jmg3

Description

@u01jmg3
  • Is it worth mentioning withConfiguredRule() in the README?
  • I struggled to find it for ECS and I know Rector has a dedicated page in the docs.
<?php

use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
    ->withConfiguredRule(
        ArraySyntaxFixer::class,
        ['syntax' => 'long']
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions