-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
34 lines (29 loc) · 890 Bytes
/
Copy pathecs.php
File metadata and controls
34 lines (29 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php declare(strict_types=1);
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
])
// include *.php files in the root directory
->withRootFiles()
// add a single rule
->withRules([
NoUnusedImportsFixer::class,
])
// add sets - group of rules, from easiest to more complex ones
// uncomment one, apply one, commit, PR, merge and repeat
//->withPreparedSets(
// spaces: true,
// namespaces: true,
// docblocks: true,
// arrays: true,
// comments: true,
//)
// ...but first: take it step by step
->withSpacesLevel(2)
->withArrayLevel(2)
->withControlStructuresLevel(2)
->withDocblockLevel(2);