Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
40 lines (36 loc) · 1.73 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
40 lines (36 loc) · 1.73 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<arg name="basepath" value="."/>
<arg name="cache" value="cache/phpcs.cache"/>
<file>coverage-guard.php</file>
<file>example/</file>
<file>src/</file>
<file>tests/</file>
<!-- The Symfony example is a self-contained framework app: it follows Doctrine/Symfony idioms
(e.g. `use ...Mapping as ORM` attributes) that clash with this standard, and its var/ holds
generated container/cache files. It is not linted here. -->
<exclude-pattern>example/symfony/*</exclude-pattern>
<rule ref="ShipMonkCodingStandard">
<!-- line-comment section dividers above functions are used throughout -->
<exclude name="Squiz.Commenting.FunctionComment.WrongStyle"/>
<!-- COSE algorithm constants follow spec names (EdDSA, Ed25519, Ed448) -->
<exclude name="Generic.NamingConventions.UpperCaseConstantName"/>
<!-- example/plain-php/server.php is deliberately a flat single-file script -->
<exclude name="Squiz.Functions.GlobalFunction"/>
</rule>
<!-- align @param annotations to columns; severity must be restored explicitly because ShipMonkCodingStandard excludes these codes -->
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamType">
<severity>5</severity>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamName">
<severity>5</severity>
</rule>
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces">
<properties>
<property name="ignoreSpacesInAnnotation" value="true"/>
</properties>
</rule>
</ruleset>