Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpcs.xml
More file actions
Latest commit
executable file
·64 lines (58 loc) · 2.92 KB
/
Copy pathphpcs.xml
File metadata and controls
executable file
·64 lines (58 loc) · 2.92 KB
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
64
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<argname="basepath"value="."/>
<argname="extensions"value="php"/>
<argname="parallel"value="80"/>
<argname="cache"value=".phpcs-cache"/>
<!-- PHP Compatibility -->
<configname="php_version"value="80000"/>
<!-- Ignore warnings, show progress of the run and show sniff names -->
<argvalue="nps"/>
<!-- Directories to be checked -->
<file>src</file>
<file>tests</file>
<exclude-pattern>*/tmp/*</exclude-pattern>
<exclude-pattern>*/Fake/*</exclude-pattern>
<!-- PSR12 Coding Standard -->
<ruleref="PSR12"/>
<!-- Based on Doctrine Coding Standard -->
<ruleref="Doctrine">
<!-- Exclude Rules -->
<excludename="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
<excludename="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
<excludename="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix"/>
<excludename="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
<excludename="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
<excludename="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix"/>
<excludename="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable"/>
<excludename="SlevomatCodingStandard.Commenting.UselessInheritDocComment.UselessInheritDocComment"/>
<excludename="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
<excludename="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed"/>
<excludename="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
<excludename="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint" />
</rule>
<!-- Additional Rules -->
<ruleref="SlevomatCodingStandard.Commenting.DocCommentSpacing">
<properties>
<propertyname="annotationsGroups"type="array">
<elementvalue="@param, @psalm-param, @phpstan-param"/>
<elementvalue="@return, @psalm-return, @phpstan-return"/>
<elementvalue="@throws"/>
</property>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.Classes.PropertySpacing">
<properties>
<propertyname="minLinesCountBeforeWithComment"value="1"/>
<propertyname="maxLinesCountBeforeWithComment"value="1"/>
<propertyname="maxLinesCountBeforeWithoutComment"value="0"/>
</properties>
</rule>
<ruleref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<propertyname="searchAnnotations"value="true"/>
</properties>
</rule>
</ruleset>