-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathphpcs.xml
More file actions
30 lines (24 loc) · 1.06 KB
/
phpcs.xml
File metadata and controls
30 lines (24 loc) · 1.06 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
<?xml version="1.0"?>
<!-- PHP_CodeSniffer standard -->
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<ruleset name="drupal/drupal-driver">
<description>DrupalDriver coding standards</description>
<arg name="colors"/>
<arg value="sp"/>
<file>src</file>
<file>tests</file>
<rule ref="Drupal">
<exclude name="Drupal.Semantics.FunctionTriggerError"/>
<exclude name="Drupal.Commenting.Deprecated"/>
</rule>
<!-- Core drivers need to set a server's remote address. -->
<rule ref="Drupal.Semantics.RemoteAddress.RemoteAddress">
<exclude-pattern>src/Drupal/Driver/Core/*.php</exclude-pattern>
</rule>
<rule ref="DrevOps"/>
<!-- Enforce native PHP type declarations on parameters, returns and
properties (auto-fixable when types exist in docblocks). -->
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>
</ruleset>