-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecs.php
42 lines (36 loc) · 1.16 KB
/
ecs.php
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
35
36
37
38
39
40
41
42
<?php declare(strict_types=1);
/**
* This file is part of the Sarif-PHP-Converters package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Laurent Laville
* @since Release 1.0.0
*/
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/examples',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSkip([
__DIR__ . '/examples/fixtures',
\PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\FileHeaderSniff::class,
\PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\OpenTagSniff::class,
\PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff::class,
\PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer::class,
\PhpCsFixer\Fixer\Import\OrderedImportsFixer::class,
])
// Report absolute path on filenames
->withRealPathReporting(true)
// add a single rule
->withRules([
\PhpCsFixer\Fixer\Import\NoUnusedImportsFixer::class,
])
// add sets - group of rules
->withPreparedSets(
psr12: true,
)
;