forked from shopsys/project-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasy-coding-standard.yml
157 lines (139 loc) · 9.53 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
imports:
- { resource: 'vendor/shopsys/coding-standards/easy-coding-standard.yml', ignore_errors: true }
services:
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\Operators\DisallowEqualOperatorsSniff: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
PhpCsFixer\Fixer\ControlStructure\NoUselessElseFixer: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\ControlStructures\DisallowEmptySniff: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\ControlStructures\EarlyExitSniff:
ignoreStandaloneIfInScope: true
ignoreOneLineTrailingIf: true
ignoreTrailingIfWithOneInstruction: true
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\Classes\ParentCallSpacingSniff:
linesCountBeforeParentCall: 1
linesCountAfterParentCall: 1
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
allowPartialUses: true
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\Commenting\DeprecatedAnnotationDeclarationSniff: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff:
linesCountBetweenDifferentAnnotationsTypes: 0
# @deprecated This will be moved from project-base to coding-standards package in next major version
SlevomatCodingStandard\Sniffs\ControlStructures\UselessIfConditionWithReturnSniff: ~
parameters:
sets:
- 'php70'
- 'php71'
- 'psr12'
- 'dead-code'
- 'clean-code'
- 'array'
- 'comments'
- 'control-structures'
- 'docblock'
- 'namespaces'
- 'strict'
exclude_files:
- '*/tests/App/Test/Codeception/_generated/AcceptanceTesterActions.php'
- '*/var/cache/*'
skip:
ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff:
- '*/src/DataFixtures/*/*DataFixture.php'
- '*/src/DataFixtures/Demo/ProductDataFixtureLoader.php'
- '*/src/Controller/Front/OrderController.php'
- '*/src/Form/Front/Customer/BillingAddressFormType.php'
- '*/src/Form/Front/Customer/DeliveryAddressFormType.php'
- '*/src/Form/Front/Order/PersonalInfoFormType.php'
- '*/tests/App/Functional/EntityExtension/EntityExtensionTest.php'
- '*/tests/App/Functional/Model/Order/OrderFacadeTest.php'
- '*/tests/App/Functional/Model/Order/Preview/OrderPreviewCalculationTest.php'
- '*/tests/App/Functional/Model/Pricing/InputPriceRecalculationSchedulerTest.php'
- '*/tests/App/Smoke/BackendApiCreateProductTest.php'
- '*/tests/App/Smoke/Http/RouteConfigCustomization.php'
- '*/tests/App/Functional/Model/Product/ProductOnCurrentDomainFacadeCountDataTest.php'
- '*/tests/App/Functional/Model/Cart/CartMigrationFacadeTest.php'
- '*/tests/FrontendApiBundle/Functional/Advert/GetAdvertsTest.php'
- '*/tests/FrontendApiBundle/Functional/Article/GetArticlesTest.php'
- '*/tests/FrontendApiBundle/Functional/Image/ProductImagesTest.php'
- '*/tests/FrontendApiBundle/Functional/Payment/PaymentsTest.php'
- '*/tests/FrontendApiBundle/Functional/Transport/TransportsTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/CompanyFieldsAreValidatedTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/DeliveryFieldsAreValidatedTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/DynamicFieldsInOrderTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/FullOrderTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/GetOrdersAsAuthenticatedCustomerUserTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/MinimalOrderTest.php'
- '*/tests/FrontendApiBundle/Functional/Order/MultipleProductsInOrderTest.php'
- '*/tests/FrontendApiBundle/Functional/Product/ProductTest.php'
- '*/tests/FrontendApiBundle/Functional/Product/ProductVariantTest.php'
- '*/tests/FrontendApiBundle/Functional/Product/ProductTest.php'
- '*/tests/FrontendApiBundle/Functional/Product/ProductsTest.php'
- '*/tests/FrontendApiBundle/Functional/Product/PromotedProductsTest.php'
- '*/tests/FrontendApiBundle/Functional/Brand/BrandTest.php'
- '*/tests/FrontendApiBundle/Functional/Brand/BrandsTest.php'
- '*/tests/FrontendApiBundle/Functional/Product/ProductsFilteringOptionsTest.php'
ObjectCalisthenics\Sniffs\Files\ClassTraitAndInterfaceLengthSniff:
- '*/tests/App/Functional/Model/Product/ProductVisibilityRepositoryTest.php'
- '*/src/DataFixtures/Demo/OrderDataFixture.php'
- '*/src/DataFixtures/Demo/ProductDataFixture.php'
- '*/tests/App/Functional/Model/Product/ProductOnCurrentDomainFacadeCountDataTest.php'
- '*/tests/App/Test/Codeception/Module/StrictWebDriver.php'
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
- '*/src/DataFixtures/Demo/ProductDataFixture.php'
- '*/src/DataFixtures/Demo/CategoryDataFixture'
Shopsys\CodingStandards\Sniffs\ValidVariableNameSniff:
- '*/tests/App/Functional/EntityExtension/EntityExtensionTest.php'
- '*/tests/App/Test/Codeception/_generated/AcceptanceTesterActions.php'
Shopsys\CodingStandards\Sniffs\ObjectIsCreatedByFactorySniff:
- '*/tests/*'
Shopsys\CodingStandards\Sniffs\ForbiddenDumpSniff:
- '*/tests/App/Functional/Model/Cart/CartFacadeTest.php'
Shopsys\CodingStandards\Sniffs\ForbiddenDoctrineInheritanceSniff:
- '*/src/*'
- '*/tests/App/*'
PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff.Underscore:
- '*/tests/App/Test/Codeception/Helper/CloseNewlyOpenedWindowsHelper.php'
- '*/tests/App/Test/Codeception/Helper/DatabaseHelper.php'
- '*/tests/App/Test/Codeception/Helper/DomainHelper.php'
- '*/tests/App/Test/Codeception/Helper/LocalizationHelper.php'
- '*/tests/App/Test/Codeception/Helper/NumberFormatHelper.php'
- '*/tests/App/Test/Codeception/Helper/SymfonyHelper.php'
- '*/tests/App/Test/Codeception/Module/Db.php'
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule is applied via `clean-code` set but we do not want to use it for now
# some variables exist just because of the right annotation
PhpCsFixer\Fixer\ReturnNotation\ReturnAssignmentFixer: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule is applied via `control-structures` set but we do not want to use it for now
PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule is applied via `docblock` set but we do not want to use it for now
# remove variable name from @var and @type annotations
PhpCsFixer\Fixer\Phpdoc\PhpdocVarWithoutNameFixer: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule is applied via `docblock` set but we do not want to use it for now
#remove inheritdoc
PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule is applied via `php70` set but we cannot use it until next major because of possible BC breaks
SlevomatCodingStandard\Sniffs\Exceptions\ReferenceThrowableOnlySniff: ~
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule is applied via `php71` set but we cannot use it until next major because of possible BC breaks
PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer: ~
# @deprecated File is excluded as the comments are already missing and deprecated methods will not be in next major
SlevomatCodingStandard\Sniffs\Commenting\DeprecatedAnnotationDeclarationSniff:
- '*/tests/App/Test/Codeception/Module/StrictWebDriver.php'
# @deprecated This will be moved from project-base to coding-standards package in next major version
# rule breaks jms/translation-budle as it fails on this usage: `[, $b] = $var`
PhpCsFixer\Fixer\ListNotation\ListSyntaxFixer: ~