forked from typhonius/acquia-php-sdk-v2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
27 lines (19 loc) · 1.03 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="AcquiaPhpSdkV2">
<description>Acquia PHP SDK v2 CodeSniffer configuration.</description>
<arg name="colors"/>
<arg name="cache" value="build/.phpcs-cache"/>
<arg name="parallel" value="10"/>
<file>src</file>
<file>tests</file>
<!-- Danger! Exclude patterns apply to the full file path, including parent directories of the current repository. -->
<!-- Don't exclude common directory names like `build`, which will fail on Travis CI because of /home/travis/build/acquia/<project>. -->
<!-- @see https://github.com/squizlabs/PHP_CodeSniffer/issues/981 -->
<exclude-pattern>tests/logs/*</exclude-pattern>
<rule ref="PSR12" />
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint" />
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint" />
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing" />
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment" />
</ruleset>