|
| 1 | +<?xml version="1.0"?> |
| 2 | +<ruleset name="Coding Standard"> |
| 3 | + <!-- Paths to check --> |
| 4 | + <file>src</file> |
| 5 | + <file>tests</file> |
| 6 | + |
| 7 | + <!-- display progress --> |
| 8 | + <arg value="p"/> |
| 9 | + <arg name="no-colors"/> |
| 10 | + |
| 11 | + <!-- inherit rules from: --> |
| 12 | + <rule ref="PSR2"/> |
| 13 | + <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
| 14 | + <rule ref="Generic.Formatting.SpaceAfterNot"/> |
| 15 | + <rule ref="Squiz.WhiteSpace.OperatorSpacing"> |
| 16 | + <properties> |
| 17 | + <property name="ignoreNewlines" value="true"/> |
| 18 | + </properties> |
| 19 | + </rule> |
| 20 | + <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"> |
| 21 | + <properties> |
| 22 | + <property name="ignoreBlankLines" value="false"/> |
| 23 | + </properties> |
| 24 | + </rule> |
| 25 | + <rule ref="Squiz.NamingConventions.ValidVariableName"> |
| 26 | + <exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"/> |
| 27 | + </rule> |
| 28 | + |
| 29 | + <rule ref="Squiz.Strings.ConcatenationSpacing" > |
| 30 | + <properties> |
| 31 | + <property name="spacing" value="1" /> |
| 32 | + <property name="ignoreNewlines" value="true" /> |
| 33 | + </properties> |
| 34 | + </rule> |
| 35 | + <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing" /> |
| 36 | + |
| 37 | + <config name="installed_paths" value="vendor/slevomat/coding-standard/SlevomatCodingStandard"/> |
| 38 | + |
| 39 | + <rule ref="Generic.Files.LineLength"> |
| 40 | + <exclude name="Generic.Files.LineLength.TooLong"/> |
| 41 | + </rule> |
| 42 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes" />--> |
| 43 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing" />--> |
| 44 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" />--> |
| 45 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing" />--> |
| 46 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing" />--> |
| 47 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint" >--> |
| 48 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />--> |
| 49 | +<!-- </rule>--> |
| 50 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint" />--> |
| 51 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">--> |
| 52 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" />--> |
| 53 | +<!-- </rule>--> |
| 54 | +<!-- <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint" >--> |
| 55 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />--> |
| 56 | +<!-- </rule>--> |
| 57 | +<!-- <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses" />--> |
| 58 | + |
| 59 | +</ruleset> |
0 commit comments