generated from itk-dev/drupal-11-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
executable file
·29 lines (23 loc) · 1.04 KB
/
phpcs.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
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The coding standard.</description>
<file>web/modules/custom/</file>
<file>web/themes/custom/</file>
<!-- Exclude generated files -->
<exclude-pattern>node_modules</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>web/modules/custom/*/build/</exclude-pattern>
<exclude-pattern>web/themes/custom/*/build/</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<arg value="p"/>
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,yml"/>
<config name="drupal_core_version" value="11"/>
<rule ref="Drupal">
<!-- <exclude name="Drupal.Files.TxtFileLineLength.TooLong"/> -->
<!-- We want to be able to use "package" and "version" in our custom modules -->
<exclude name="Drupal.InfoFiles.AutoAddedKeys.Project"/>
<exclude name="Drupal.InfoFiles.AutoAddedKeys.Version"/>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"/>
</ruleset>