|
29 | 29 | <exclude name="SlevomatCodingStandard.Classes.TraitUseSpacing.IncorrectLinesCountBeforeFirstUse" />
|
30 | 30 | <exclude name="SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment.OneLinePropertyComment" />
|
31 | 31 | <exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDifferentAnnotationsTypes" />
|
32 |
| - <exclude name="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing.IncorrectLinesCountBeforeControlStructure" /> |
33 |
| - <exclude name="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing.IncorrectLinesCountAfterControlStructure" /> |
| 32 | + <exclude name="SlevomatCodingStandard.Commenting.UselessFunctionDocCommentSniff" /> |
| 33 | + <exclude name="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing" /> |
34 | 34 | <exclude name="SlevomatCodingStandard.ControlStructures.DisallowEmpty.DisallowedEmpty" />
|
35 | 35 | <!-- cause they are allowed and wanted in symfony -->
|
36 | 36 | <exclude name="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison" />
|
|
51 | 51 | <exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators"/>
|
52 | 52 | <exclude name="SlevomatCodingStandard.TypeHints.DisallowArrayTypeHintSyntax.DisallowedArrayTypeHintSyntax"/>
|
53 | 53 | <exclude name="SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint.DisallowedMixedTypeHint" />
|
54 |
| - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/> |
55 |
| - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/> |
56 |
| - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment"/> |
57 |
| - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessParameterAnnotation"/> |
58 |
| - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessReturnAnnotation"/> |
| 54 | + |
| 55 | + <!-- sniffs should not be excluded since annotation sniffs are moved to UselessFunctionDocCommentSniff --> |
| 56 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHintSniff"/>--> |
| 57 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHintSniff"/>--> |
| 58 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHintSniff"/>--> |
59 | 59 | </rule>
|
60 | 60 |
|
61 | 61 | <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
|
|
87 | 87 | <exclude-pattern>src/Kernel.php</exclude-pattern>
|
88 | 88 | </rule>
|
89 | 89 |
|
90 |
| - <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration"> |
91 |
| - <properties> |
92 |
| - <property |
93 |
| - name="usefulAnnotations" |
94 |
| - type="array" |
95 |
| - value=" |
96 |
| - @after, |
97 |
| - @before, |
98 |
| - @dataProvider, |
99 |
| - @deprecated, |
100 |
| - @required, |
101 |
| - @see, |
102 |
| - @ApiDoc, |
103 |
| - @Assert\, |
104 |
| - @QueryParam, |
105 |
| - @ORM\, |
106 |
| - @ParamConverter, |
107 |
| - @Route, |
108 |
| - @Template, |
109 |
| - @Security, |
110 |
| - @Method, |
111 |
| - @IsGranted, |
112 |
| - @Operation |
113 |
| - " |
114 |
| - /> |
115 |
| - <property name="enableEachParameterAndReturnInspection" value="true"/> |
116 |
| - </properties> |
117 |
| - </rule> |
118 |
| - |
119 | 90 | <rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces">
|
120 | 91 | <properties>
|
121 | 92 | <property name="linesCountAfterOpeningBrace" value="0"/>
|
|
131 | 102 | </rule>
|
132 | 103 |
|
133 | 104 | <exclude-pattern>./src/Migrations/*</exclude-pattern>
|
| 105 | + <exclude-pattern>./src/Kernel.php</exclude-pattern> |
134 | 106 | <exclude-pattern>./public/index.php</exclude-pattern>
|
135 | 107 | <exclude-pattern>./config/bundles.php</exclude-pattern>
|
136 | 108 | <exclude-pattern>./config/bootstrap.php</exclude-pattern>
|
|
0 commit comments