-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
58 lines (57 loc) · 3.7 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="Lookyman">
<rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml">
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
</rule>
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/>
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<!-- todo we like ReferenceUsedNamesOnly, but property "ignoredNames" does not work as expected -->
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces"/>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
<properties>
<property name="forbiddenAnnotations" type="array" value="@author,@created,@version,@package,@copyright,@license"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
<!-- todo property "spacesCountAroundEqualsSign" should be set to 0, but that clashes with Squiz.WhiteSpace.OperatorSpacing -->
</properties>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"/>
<rule ref="Squiz.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="sizeof=>count,delete=>unset,print=>echo,is_null=>null,create_function=>null,var_dump=>null"/>
</properties>
</rule>
<rule name="pcc">
<exclude name="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
<exclude name="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/>
<exclude name="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/>
<exclude name="SlevomatCodingStandard.Namespaces.UnusedUses"/>
<exclude name="Squiz.Commenting.FunctionComment"/>
<exclude name="Generic.Commenting.Todo"/>
<exclude name="LookymanCodingStandard.Classes.FinalClass"/>
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.KeySpecified"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.NoKeySpecified"/>
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName">
<exclude name="Generic.NamingConventions.UpperCaseConstantName"/>
</rule>
<!-- todo solve blank line at the beginning of class enforced by Squiz.WhiteSpace.MemberVarSpacing -->
<!-- todo solve blank line at the beginning of class enforced by Squiz.WhiteSpace.FunctionSpacing -->
</ruleset>