-
Notifications
You must be signed in to change notification settings - Fork 17
/
phpcs-ruleset.xml
38 lines (31 loc) · 1.59 KB
/
phpcs-ruleset.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
<?xml version="1.0"?>
<!-- PHP_CodeSniffer standard for NextEuropa subsites. -->
<!-- See http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php -->
<ruleset name="NextEuropa">
<description>Drupal coding standard for NextEuropa subsites</description>
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal" />
<!-- Minified files don't have to comply with coding standards. -->
<exclude-pattern>*.min.css</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Exclude files that do not contain PHP, Javascript or CSS code. -->
<exclude-pattern>*.json</exclude-pattern>
<exclude-pattern>*.sh</exclude-pattern>
<exclude-pattern>*.xml</exclude-pattern>
<exclude-pattern>*.yml</exclude-pattern>
<exclude-pattern>composer.lock</exclude-pattern>
<!-- Exclude third party code. -->
<exclude-pattern>resources/cloudformation</exclude-pattern>
<exclude-pattern>resources/codedeploy</exclude-pattern>
<!-- Views handlers not strictly follow Drupal class name conventions. -->
<rule ref="Drupal.NamingConventions.ValidClassName">
<exclude-pattern>modules/**/views/*.inc</exclude-pattern>
</rule>
<!-- Views handlers not strictly follow Drupal function name conventions. -->
<rule ref="Drupal.NamingConventions.ValidFunctionName">
<exclude-pattern>modules/**/views/*.inc</exclude-pattern>
</rule>
<!-- Phing tasks require to use CamelCaps for argument names. -->
<rule ref="Drupal.NamingConventions.ValidVariableName">
<exclude-pattern>src/Phing</exclude-pattern>
</rule>
</ruleset>