-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathphpcs.xml
45 lines (37 loc) · 1.6 KB
/
phpcs.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
<?xml version="1.0"?>
<ruleset name="GDPRStandard" namespace="Drupal\GDPR\CustomStandard">
<!--
The name attribute of the ruleset tag is displayed
when running PHP_CodeSniffer with the -v command line
argument.
If you have custom sniffs, and they use a namespace prefix
that is different to the name of the directory containing
your ruleset.xml file, you can set the namespace prefix using
the namespace attribute of the ruleset tag.
For example, if your namespace format for sniffs is
MyProject\CS\Standard\Sniffs\Category, set the namespace to
MyProject\CS\Standard (everything up to \Sniffs\)
-->
<!--
The content of the description tag is not displayed anywhere
except in this file, so it can contain information for
developers who may change this file in the future.
-->
<description>A custom coding standard for the drupal/gdpr module.</description>
<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.6-"/>
<arg name="extensions" value="php,module,inc,install,test,profile,theme" />
<arg name="ignore" value="*.md" />
<arg value="p" />
<!--
Include all sniffs in the PEAR standard. Note that the
path to the standard does not have to be specified as the
PEAR standard exists inside the PHP_CodeSniffer install
directory.
-->
<!-- From drupal/coder:^8 -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<!-- From wimg/php-compatibility:^8 -->
<rule ref="PHPCompatibility"/>
</ruleset>