vibe
This commit is contained in:
parent
837cfb6d43
commit
939840a3ac
76 changed files with 6636 additions and 83 deletions
41
ecs.php
Normal file
41
ecs.php
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
|
||||
use Symplify\EasyCodingStandard\Config\ECSConfig;
|
||||
|
||||
return ECSConfig::configure()
|
||||
->withPaths([
|
||||
__DIR__ . '/public',
|
||||
__DIR__ . '/src',
|
||||
__DIR__ . '/config',
|
||||
__DIR__ . '/tests',
|
||||
__DIR__ . '/bin',
|
||||
])
|
||||
|
||||
->withRootFiles()
|
||||
|
||||
// add a single rule
|
||||
->withRules([
|
||||
NoUnusedImportsFixer::class,
|
||||
])
|
||||
|
||||
|
||||
|
||||
->withPhpCsFixerSets(
|
||||
per: true,
|
||||
php84Migration: true,
|
||||
)
|
||||
|
||||
|
||||
// add sets - group of rules, from easiest to more complex ones
|
||||
// uncomment one, apply one, commit, PR, merge and repeat
|
||||
->withPreparedSets(
|
||||
arrays: true,
|
||||
comments: true,
|
||||
controlStructures: true,
|
||||
strict: true,
|
||||
cleanCode: true,
|
||||
)
|
||||
;
|
Loading…
Add table
Add a link
Reference in a new issue