-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-coding-standard.yaml
44 lines (36 loc) · 1.51 KB
/
easy-coding-standard.yaml
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
43
44
services:
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer: ~
PhpCsFixer\Fixer\ClassNotation\FinalClassFixer: ~
Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer: ~
# This needs some configuration to play nicely with PhpStan
PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer:
allow_mixed: true
parameters:
paths:
- public/
- src/
- tests/
sets:
- 'common'
- 'clean-code'
- 'php'
- 'symfony'
- 'symfony-risky'
- 'psr'
cache_directory: 'var/cache/ecs'
skip:
# Conflicting rule, we must choose one over the other. PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer over:
PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer: ~
# Good for Symfony, less for us
PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer: ~
PhpCsFixer\Fixer\ClassNotation\FinalClassFixer:
- 'src/Gnutix/Library/DependencyInjection/Extension.php'
- 'src/Gnutix/Library/LibraryFactory/YamlLibraryFactory.php'
- 'src/Gnutix/Library/LibraryFactory/XmlLibraryFactory.php'
- 'src/Gnutix/Library/Dumper/YamlLibraryDumper.php'
- 'src/Gnutix/Library/Model/Library.php'
- 'src/Gnutix/Library/Model/Book.php'
PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer:
- 'tests/Unit/Library/Helper/ArrayPopulatedObjectTest.php'