forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-coding-standard.yml
50 lines (48 loc) · 3 KB
/
easy-coding-standard.yml
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
45
46
47
48
49
50
imports:
- { resource: '../dev-ops/analyze/vendor-bin/cs-fixer/vendor/symplify/easy-coding-standard/config/set/psr12.yaml' }
- { resource: '../dev-ops/analyze/vendor-bin/cs-fixer/vendor/symplify/easy-coding-standard/config/set/symfony.yaml' }
- { resource: '../dev-ops/analyze/vendor-bin/cs-fixer/vendor/symplify/easy-coding-standard/config/set/common/array.yaml' }
- { resource: '../dev-ops/analyze/vendor-bin/cs-fixer/vendor/symplify/easy-coding-standard/config/set/common/control-structures.yaml' }
- { resource: '../dev-ops/analyze/vendor-bin/cs-fixer/vendor/symplify/easy-coding-standard/config/set/common/strict.yaml' }
services:
PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer: ~
PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer:
elements: ['property', 'method']
PhpCsFixer\Fixer\FunctionNotation\MethodArgumentSpaceFixer:
on_multiline: 'ensure_fully_multiline'
PhpCsFixer\Fixer\FunctionNotation\NullableTypeDeclarationForDefaultNullValueFixer: ~
PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer: ~
PhpCsFixer\Fixer\Operator\ConcatSpaceFixer:
spacing: 'one'
PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer:
annotations: ['copyright', 'category']
PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer: ~
PhpCsFixer\Fixer\PhpUnit\PhpUnitConstructFixer: ~
PhpCsFixer\Fixer\PhpUnit\PhpUnitDedicateAssertFixer:
target: 'newest'
PhpCsFixer\Fixer\PhpUnit\PhpUnitDedicateAssertInternalTypeFixer: ~
PhpCsFixer\Fixer\PhpUnit\PhpUnitMockFixer: ~
PhpCsFixer\Fixer\PhpUnit\PhpUnitMockShortWillReturnFixer: ~
PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer: ~
PhpCsFixer\Fixer\ReturnNotation\NoUselessReturnFixer: ~
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer: ~
PhpCsFixer\Fixer\Whitespace\CompactNullableTypehintFixer: ~
PhpCsFixerCustomFixers\Fixer\NoImportFromGlobalNamespaceFixer: ~
PhpCsFixerCustomFixers\Fixer\NoSuperfluousConcatenationFixer: ~
PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer: ~
PhpCsFixerCustomFixers\Fixer\OperatorLinebreakFixer: ~
PhpCsFixerCustomFixers\Fixer\PhpdocNoIncorrectVarAnnotationFixer: ~
PhpCsFixerCustomFixers\Fixer\SingleSpaceAfterStatementFixer: ~
parameters:
cache_directory: 'var/cache/cs_fixer'
cache_namespace: 'platform'
skip:
PhpCsFixer\Fixer\ClassNotation\SelfAccessorFixer: ~
PhpCsFixer\Fixer\LanguageConstruct\ExplicitIndirectVariableFixer: ~
PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer: ~
PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer: ~
PhpCsFixer\Fixer\StringNotation\ExplicitStringVariableFixer: ~
PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer: # would otherwise destroy the example in the annotation
- 'src/Core/System/Annotation/Concept/DeprecationPattern/ReplaceDecoratedInterface.php'
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff: ~