|
22 | 22 | <rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"><!-- relative path to your ruleset.xml -->
|
23 | 23 | <!-- keep it for debugging reasons to be able to list all rules vendor/bin/phpcs -e | grep SlevomatCodingStandard -->
|
24 | 24 | <!--<exclude name="*" />-->
|
| 25 | + |
| 26 | + <exclude name="SlevomatCodingStandard.Files.FunctionLength.FunctionLength" /> |
| 27 | + <exclude name="SlevomatCodingStandard.Functions.FunctionLength.FunctionLength" /> |
| 28 | + <exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall.MissingTrailingComma" /> |
| 29 | + <exclude name="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall.DisallowedTrailingComma" /> |
| 30 | + <exclude name="SlevomatCodingStandard.Functions.DisallowNamedArguments.DisallowedNamedArgument" /> |
| 31 | + <exclude name="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion.RequiredConstructorPropertyPromotion" /> |
| 32 | + <exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration.MissingTrailingComma" /> |
| 33 | + <exclude name="SlevomatCodingStandard.Classes.ClassStructure.IncorrectGroupOrder" /> |
| 34 | + <exclude name="SlevomatCodingStandard.PHP.DisallowDirectMagicInvokeCall.DisallowDirectMagicInvokeCall" /> |
| 35 | + <exclude name="SlevomatCodingStandard.Functions.RequireArrowFunction.RequiredArrowFunction" /> |
| 36 | + |
25 | 37 | <exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
|
26 | 38 | <exclude name="SlevomatCodingStandard.Functions.DisallowEmptyFunction.EmptyFunction" />
|
27 | 39 | <exclude name="SlevomatCodingStandard.Whitespaces.DuplicateSpaces.DuplicateSpaces" />
|
|
37 | 49 | <exclude name="SlevomatCodingStandard.Files.LineLength.LineTooLong" />
|
38 | 50 | <exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion" />
|
39 | 51 | <exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces.NonFullyQualified" />
|
| 52 | + <exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix" /> |
40 | 53 | <exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix" />
|
41 | 54 | <exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators.DisallowedPostIncrementOperator" />
|
42 | 55 | <exclude name="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing.IncorrectLinesCountBeforeControlStructure" />
|
|
78 | 91 | <!-- <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHintSniff"/>-->
|
79 | 92 | </rule>
|
80 | 93 |
|
| 94 | + <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"> |
| 95 | + <exclude-pattern>tests/**Test*.php</exclude-pattern> |
| 96 | + <exclude-pattern>src/Form/Type/*Type.php</exclude-pattern> |
| 97 | + <exclude-pattern>src/Doctrine/*Extension.php</exclude-pattern> |
| 98 | + </rule> |
| 99 | + |
| 100 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"> |
| 101 | + <exclude-pattern>src/Controller/*Controller.php</exclude-pattern> |
| 102 | + </rule> |
| 103 | + |
| 104 | + <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"> |
| 105 | + <exclude-pattern>src/Security/UserProvider.php</exclude-pattern> |
| 106 | + </rule> |
| 107 | + |
| 108 | + <rule ref="SlevomatCodingStandard.Classes.ForbiddenPublicProperty.ForbiddenPublicProperty"> |
| 109 | + <exclude-pattern>src/Dto/*Request.php</exclude-pattern> |
| 110 | + <exclude-pattern>src/Entity/*Request.php</exclude-pattern> |
| 111 | + <exclude-pattern>src/Validator/Constraints/*.php</exclude-pattern> |
| 112 | + </rule> |
| 113 | + |
| 114 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"> |
| 115 | + <exclude-pattern>tests/**Test*.php</exclude-pattern> |
| 116 | + </rule> |
| 117 | + <rule ref="Symfony.Commenting.FunctionComment.MissingParamTag"> |
| 118 | + <exclude-pattern>tests/Context/*Context.php</exclude-pattern> |
| 119 | + </rule> |
| 120 | + |
81 | 121 | <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
|
82 | 122 | <properties>
|
83 | 123 | <property name="searchAnnotations" value="true"/>
|
|
122 | 162 | </properties>
|
123 | 163 | </rule>
|
124 | 164 |
|
| 165 | + <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"> |
| 166 | + <properties> |
| 167 | + <property name="linesCountBeforeDeclare" value="0" /> |
| 168 | + </properties> |
| 169 | + </rule> |
| 170 | + |
125 | 171 | <rule ref="Generic.Files.LineLength">
|
126 | 172 | <properties>
|
127 | 173 | <property name="lineLimit" value="150" />
|
|
0 commit comments