-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ruleset.xml
63 lines (53 loc) · 3.07 KB
/
ruleset.xml
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
59
60
61
62
63
<?xml version="1.0"?>
<ruleset name="Mesour Coding Standard">
<rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml">
<!-- because of exceptions.php -->
<exclude name="Squiz.Classes.ClassFileName.NoMatch"/>
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
<!-- because of "@param int" over "@param integer" -->
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName"/>
<!-- because of functions without visibility in interfaces -->
<exclude name="Squiz.Scope.MethodScope.Missing"/>
<!-- because of ") {" when arguments are on multiple lines -->
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/>
<!-- because of *.phpt -->
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<!-- because of ::class -->
<exclude name="Squiz.Classes.SelfMemberReference.NotUsed"/>
<!-- because of $formControl->addCondition() -->
<exclude name="PEAR.WhiteSpace.ObjectOperatorIndent.Incorrect"/>
<exclude name="SlevomatCodingStandard.PHP.DisallowReference.DisallowedAssigningByReference"/>
<exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators.DisallowedPostIncrementOperator"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison.RequiredYodaComparison"/>
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses.UselessParentheses"/>
<exclude name="SlevomatCodingStandard.Functions.TrailingCommaInCall.MissingTrailingComma"/>
</rule>
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/>
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
<!-- because of exceptions.php -->
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
<!-- because of \DateTime, \Iterator etc. -->
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName"/>
<!-- because of @method annotations -->
<exclude name="SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse"/>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" type="boolean" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowFullyQualifiedExceptions" type="boolean" value="true"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<property name="spacing" value="1"/>
</properties>
</rule>
<exclude-pattern>tests/environment.php</exclude-pattern>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
</ruleset>