forked from ec-europa/joinup-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs-ruleset.xml.dist
35 lines (29 loc) · 1.6 KB
/
phpcs-ruleset.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
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<!-- PHP_CodeSniffer standard for Drupal projects. -->
<!-- See http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php -->
<ruleset name="Drupal Project">
<description>Drupal coding standard</description>
<!-- Exclude unsupported file types. -->
<exclude-pattern>*.gif</exclude-pattern>
<exclude-pattern>*.less</exclude-pattern>
<exclude-pattern>*.png</exclude-pattern>
<!-- Minified files don't have to comply with coding standards. -->
<exclude-pattern>*.min.css</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Exclude Phing scripts from Drupal coding standards. -->
<exclude-pattern>src/Phing/*</exclude-pattern>
<!-- Exclude frontend third-party libraries from coding standards -->
<exclude-pattern>web/themes/joinup/vendor/*</exclude-pattern>
<exclude-pattern>web/themes/joinup/prototype/gulpfile.js</exclude-pattern>
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal" />
<rule ref="./vendor/drupal/coder/coder_sniffer/DrupalPractice">
<exclude name="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable" />
<exclude name="DrupalPractice.FunctionDefinitions" />
<exclude name="DrupalPractice.Objects.GlobalClass.GlobalClass" />
<exclude name="DrupalPractice.Yaml" />
</rule>
<!-- Do not report lines exceeding 80 characters for Markdown files that contain long file paths. -->
<rule ref="Drupal.Files.TxtFileLineLength.TooLong">
<exclude-pattern>web/modules/custom/joinup_subscription/README.md</exclude-pattern>
</rule>
</ruleset>