-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
36 lines (29 loc) · 1.31 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
36 lines (29 loc) · 1.31 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="patternkit-module">
<file>.</file>
<arg name="extensions" value="php,module,inc,install,test,profile,theme,info"/>
<!-- Initially include all Drupal and DrupalPractice sniffs. -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<!-- A '-' is prefixed to each of these, so s becomes -s, etc. -->
<!-- Use 's' to print the full sniff name in the report. -->
<arg value="s"/>
<!-- Use 'p' to show progress during execution. -->
<arg value="p"/>
<arg value="-colors"/>
<arg name='report-width' value='120'/>
<!-- Exclude folders for third-party dependencies. -->
<exclude-pattern>*/bower_components/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude recursive symlink in tests module. -->
<exclude-pattern>./tests/modules/patternkit_test/lib</exclude-pattern>
<!-- Disable rules that are problematic or annoying to deal with. -->
<rule ref="Drupal.Commenting.FunctionComment.ParamMissingDefinition">
<!-- Don't redefine the $options param for every command. -->
<exclude-pattern>*Commands\.php</exclude-pattern>
</rule>
<rule ref="Drupal.Commenting.FunctionComment.Missing">
<exclude-pattern>*tests/*\.php</exclude-pattern>
</rule>
</ruleset>