|
| 1 | +<?xml version="1.0"?> |
| 2 | +<ruleset |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd" |
| 5 | +> |
| 6 | +<!-- <arg name="basepath" value="."/>--> |
| 7 | + <arg name="extensions" value="php"/> |
| 8 | + <arg name="parallel" value="80"/> |
| 9 | + <arg name="cache" value=".phpcs-cache"/> |
| 10 | + <arg name="colors"/> |
| 11 | + <arg value="nps"/> |
| 12 | + |
| 13 | + <file>src/</file> |
| 14 | + <file>tests/</file> |
| 15 | + <file>/home/goetas/projects/soap-server/soap-metadata</file> |
| 16 | + <exclude-pattern>*/tmp/*</exclude-pattern> |
| 17 | + |
| 18 | + <rule ref="Doctrine"> |
| 19 | + <exclude name="Generic.Formatting.SpaceAfterNot"/> |
| 20 | + <exclude name="Generic.Formatting.MultipleStatementAlignment"/> |
| 21 | + |
| 22 | + <exclude name="Squiz.Arrays.ArrayDeclaration.KeySpecified"/> |
| 23 | + <exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/> |
| 24 | + |
| 25 | + <exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix"/> |
| 26 | + <exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/> |
| 27 | + <exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/> |
| 28 | + <exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix"/> |
| 29 | + |
| 30 | + <exclude name="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison"/> |
| 31 | + <exclude name="SlevomatCodingStandard.ControlStructures.AssignmentInCondition.AssignmentInCondition"/> |
| 32 | + <exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit"/> |
| 33 | + |
| 34 | + <exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/> |
| 35 | + |
| 36 | + </rule> |
| 37 | + |
| 38 | + <rule ref="SlevomatCodingStandard.ControlStructures.RequireYodaComparison"/> |
| 39 | + |
| 40 | + <rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations"> |
| 41 | + <properties> |
| 42 | + <property |
| 43 | + name="forbiddenAnnotations" |
| 44 | + type="array" |
| 45 | + value=" |
| 46 | + @api, |
| 47 | + @category, |
| 48 | + @copyright, |
| 49 | + @created, |
| 50 | + @license, |
| 51 | + @package, |
| 52 | + @since, |
| 53 | + @subpackage, |
| 54 | + @version |
| 55 | + " |
| 56 | + /> |
| 57 | + </properties> |
| 58 | + </rule> |
| 59 | + |
| 60 | + |
| 61 | + <rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"> |
| 62 | + <properties> |
| 63 | + <property name="allowFallbackGlobalConstants" type="boolean" value="true"/> |
| 64 | + <property name="allowFallbackGlobalFunctions" type="boolean" value="true"/> |
| 65 | + <property name="allowFullyQualifiedGlobalClasses" type="boolean" value="true"/> |
| 66 | + <property name="allowFullyQualifiedGlobalConstants" type="boolean" value="true"/> |
| 67 | + <property name="allowFullyQualifiedGlobalFunctions" type="boolean" value="true"/> |
| 68 | + <property name="allowFullyQualifiedNameForCollidingClasses" type="boolean" value="false"/> |
| 69 | + <property name="allowFullyQualifiedNameForCollidingConstants" type="boolean" value="false"/> |
| 70 | + <property name="allowFullyQualifiedNameForCollidingFunctions" type="boolean" value="false"/> |
| 71 | + <property name="searchAnnotations" type="boolean" value="true"/> |
| 72 | + </properties> |
| 73 | + </rule> |
| 74 | + |
| 75 | + |
| 76 | + <rule ref="PSR2.Classes.PropertyDeclaration.Multiple"> |
| 77 | + <exclude-pattern>tests/*</exclude-pattern> |
| 78 | + </rule> |
| 79 | + |
| 80 | + <rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"> |
| 81 | + <exclude-pattern>tests/*</exclude-pattern> |
| 82 | + </rule> |
| 83 | + |
| 84 | + <rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing"> |
| 85 | + <properties> |
| 86 | + <property name="annotationsGroups" type="array"> |
| 87 | + <element value=" |
| 88 | + @Annotation, |
| 89 | + @Target, |
| 90 | + "/> |
| 91 | + <element value=" |
| 92 | + @internal, |
| 93 | + @deprecated, |
| 94 | + "/> |
| 95 | + <element value="@author"/> |
| 96 | + <element value=" |
| 97 | + @link, |
| 98 | + @see, |
| 99 | + @uses, |
| 100 | + "/> |
| 101 | + <element value=" |
| 102 | + @Serializer\, |
| 103 | + @ORM\, |
| 104 | + @ODM\, |
| 105 | + "/> |
| 106 | + <element value="@param"/> |
| 107 | + <element value="@return"/> |
| 108 | + <element value="@throws"/> |
| 109 | + </property> |
| 110 | + </properties> |
| 111 | + </rule> |
| 112 | + |
| 113 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"> |
| 114 | + <!-- This sniff will only remove useless @return --> |
| 115 | + |
| 116 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"/>--> |
| 117 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint"/>--> |
| 118 | + <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/> |
| 119 | + <exclude-pattern>/home/goetas/projects/soap-server/soap-metadata/src/Envelope/*</exclude-pattern> |
| 120 | + </rule> |
| 121 | + |
| 122 | + <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"> |
| 123 | + <!-- This sniff will only remove useless @var --> |
| 124 | + |
| 125 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>--> |
| 126 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint"/>--> |
| 127 | + <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/> |
| 128 | + <exclude-pattern>/home/goetas/projects/soap-server/soap-metadata/src/Envelope/*</exclude-pattern> |
| 129 | + </rule> |
| 130 | + |
| 131 | + <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"> |
| 132 | + <!-- This sniff will only remove useless @param --> |
| 133 | + |
| 134 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"/>--> |
| 135 | +<!-- <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint"/>--> |
| 136 | + <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/> |
| 137 | + |
| 138 | + <exclude-pattern>/home/goetas/projects/soap-server/soap-metadata/src/Envelope/*</exclude-pattern> |
| 139 | + </rule> |
| 140 | +</ruleset> |
0 commit comments