-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathphpcs.xml
More file actions
42 lines (33 loc) · 1.73 KB
/
phpcs.xml
File metadata and controls
42 lines (33 loc) · 1.73 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
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<!-- Adapted from Acquia Coding Standards default ruleset. -->
<!-- @see https://github.com/acquia/coding-standards-php/blob/develop/example/phpcs.xml.dist -->
<!-- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<!-- Drupal.org helpful info -->
<!-- @see https://www.drupal.org/docs/contributed-modules/code-review-module/php-codesniffer-command-line-usage -->
<!-- See Acquia's own documentation on the matter in their repo readme: -->
<!-- https://github.com/acquia/coding-standards-php -->
<ruleset name="DOJ_FOIA">
<description>DOJ FOIA Codesniffer configuration.</description>
<!-- Set extensions to scan (taken from Coder 8.3.6). -->
<!-- @see https://git.drupalcode.org/project/coder/blob/8.3.6/coder_sniffer/Drupal/ruleset.xml#L8 -->
<arg name="extensions" value="php,module,inc,install,test,profile,theme"/>
<arg name="colors"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="parallel" value="10"/>
<file>docroot/modules/custom</file>
<file>tests</file>
<exclude-pattern>*/behat</exclude-pattern>
<exclude-pattern>*/node_modules</exclude-pattern>
<exclude-pattern>*/vendor</exclude-pattern>
<exclude-pattern>*/src/Standards/*/Tests/*\.(inc|css|js)$</exclude-pattern>
<exclude-pattern>*/tests/Core/*/*\.(inc|css|js)$</exclude-pattern>
<exclude-pattern>*/css</exclude-pattern>
<exclude-pattern>*/assets</exclude-pattern>
<exclude-pattern>*/core</exclude-pattern>
<exclude-pattern>*/libraries</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<!-- These are the two rules referenced in the provided command line CS call -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
</ruleset>