paths([ __DIR__ . '/app', __DIR__ . '/modules', __DIR__ . '/themes', __DIR__ . '/tests', __DIR__ . '/public', __DIR__ . '/builds', __DIR__ . '/ecs.php', __DIR__ . '/preload.php', __DIR__ . '/rector.php', __DIR__ . '/spark', ]); $ecsConfig->skip([ // skip specific generated files __DIR__ . '/modules/Admin/Language/*/PersonsTaxonomy.php', StandardizeHereNowDocKeywordFixer::class => [ __DIR__ . '/app/Views/Components/*', __DIR__ . '/modules/**/Views/Components/*', __DIR__ . '/themes/**/Views/Components/*', __DIR__ . '/app/Helpers/components_helper.php', ], LineLengthFixer::class => [ __DIR__ . '/app/Views/*', __DIR__ . '/modules/**/Views/*', __DIR__ . '/themes/*', ], IndentationTypeFixer::class => [ __DIR__ . '/app/Views/*', __DIR__ . '/modules/**/Views/*', __DIR__ . '/themes/*', ], // crowdin enforces its own style for translation files // remove SingleQuoteFixer for Language files to prevent conflicts SingleQuoteFixer::class => [__DIR__ . '/app/Language/*', __DIR__ . '/modules/**/Language/*'], AssignmentInConditionSniff::class, ]); $ecsConfig->sets([SetList::PSR_12, SetList::SYMPLIFY, SetList::COMMON, SetList::CLEAN_CODE]); };