-
Notifications
You must be signed in to change notification settings - Fork 8
/
phpcs.xml
executable file
·31 lines (29 loc) · 1.4 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="SF.gov">
<description>PHP CodeSniffer configuration for SF.gov development.</description>
<!-- Check all files in the current directory and below. -->
<file>.</file>
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<!-- Change this value to 7 if you want to check Drupal 7 code. -->
<config name="drupal_core_version" value="9"/>
<!-- If you have Coder installed locally then you can reference the Drupal
standards with relative paths. Otherwise simply use "Drupal" and
"DrupalPractice. -->
<rule ref="Drupal"></rule>
<rule ref="DrupalPractice"></rule>
<!-- Exclude markdown and txt files. -->
<exclude-pattern>*md</exclude-pattern>
<exclude-pattern>*txt</exclude-pattern>
<!-- Exclude contrib. -->
<exclude-pattern>../modules/contrib</exclude-pattern>
<!-- Exclude auto-generated theme files. -->
<exclude-pattern>../themes/custom/sfgovpl/node_modules</exclude-pattern>
<exclude-pattern>../themes/custom/sfgovpl/dist</exclude-pattern>
<!-- Exclude generator file that follows a different standard. -->
<exclude-pattern>../modules/custom/sfgov_api/src/Generators/ApiPluginGenerator.php</exclude-pattern>
<!-- Example how you would disable an external rule you do not like:
<rule ref="PEAR.Functions.ValidDefaultValue.NotAtEnd">
<severity>0</severity>
</rule>
-->
</ruleset>