This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathphpcs.xml
81 lines (72 loc) · 3.54 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<ruleset name="govCMS">
<description>PHPCS Standard for govCMS, based on Drupal standards.
</description>
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<arg name="extensions" value="inc,info,install,module,php,profile,test,theme"/>
<arg name="colors"/>
<arg value="sp"/>
<file>/app/profiles/govcms/modules/custom</file>
<file>/app/profiles/govcms/themes/govcms</file>
<file>/app/profiles/govcms/govcms.info</file>
<file>/app/profiles/govcms/govcms.install</file>
<file>/app/profiles/govcms/govcms.profile</file>
<file>/app/profiles/govcms/tests</file>
<!-- Exclude all features-generated files. -->
<exclude-pattern>*\.bean\.*</exclude-pattern>
<exclude-pattern>*\.context\.*</exclude-pattern>
<exclude-pattern>*\.current_search\.*</exclude-pattern>
<exclude-pattern>*\.custom_formatters\.*</exclude-pattern>
<exclude-pattern>*\.ds\.*</exclude-pattern>
<exclude-pattern>*\.facetapi_defaults\.*</exclude-pattern>
<exclude-pattern>*\.feeds_*\.*</exclude-pattern>
<exclude-pattern>*\.features\.*</exclude-pattern>
<exclude-pattern>*\.field_group\.*</exclude-pattern>
<exclude-pattern>*\.file_default_displays\.*</exclude-pattern>
<exclude-pattern>*\.file_type\.*</exclude-pattern>
<exclude-pattern>*\.heartbeat\.*</exclude-pattern>
<exclude-pattern>*\.layouts\.*</exclude-pattern>
<exclude-pattern>*\.linkit_profiles\.*</exclude-pattern>
<exclude-pattern>*\.pages_default\.*</exclude-pattern>
<exclude-pattern>*\.panels_default\.*</exclude-pattern>
<exclude-pattern>*\.rules_defaults\.*</exclude-pattern>
<exclude-pattern>*\.strongarm\.*</exclude-pattern>
<exclude-pattern>*\.views_default\.*</exclude-pattern>
<exclude-pattern>*\.quicktabs\.*</exclude-pattern>
<!-- Exclude all text files. -->
<exclude-pattern>*\.txt</exclude-pattern>
<exclude-pattern>*\.md</exclude-pattern>
<!-- Exclude compiled CSS files in govCMS themes. -->
<exclude-pattern>/app/profiles/govcms/themes/govcms/*/css/*\.css</exclude-pattern>
<!-- Exclude code in SASS Extensions. -->
<exclude-pattern>sass-extensions/*</exclude-pattern>
<!-- Exclude GOVCMS_STARTERKIT -->
<exclude-pattern>GOVCMS_STARTERKIT/*</exclude-pattern>
<!--Allow uncommented functions in tests as they usually provide enough
information from their names.-->
<rule ref="Drupal.Commenting.DocComment.MissingShort">
<exclude-pattern>tests/behat/bootstrap/*\.php</exclude-pattern>
<exclude-pattern>tests/behat/bootstrap/*.inc</exclude-pattern>
<exclude-pattern>tests/phpunit/tests/*.Test\.php</exclude-pattern>
</rule>
<rule ref="Drupal.Commenting.FunctionComment.Missing">
<exclude-pattern>tests/behat/bootstrap/*\.php</exclude-pattern>
<exclude-pattern>tests/behat/bootstrap/*.inc</exclude-pattern>
<exclude-pattern>tests/phpunit/tests/*.Test\.php</exclude-pattern>
</rule>
<rule ref="Drupal.Commenting.FunctionComment.MissingReturnComment">
<exclude-pattern>tests/behat/bootstrap/*\.php</exclude-pattern>
<exclude-pattern>tests/behat/bootstrap/*.inc</exclude-pattern>
<exclude-pattern>tests/phpunit/tests/*.Test\.php</exclude-pattern>
</rule>
<rule ref="DrupalPractice.General.ClassName.ClassPrefix" >
<exclude-pattern>tests/behat/bootstrap/*\.php</exclude-pattern>
<exclude-pattern>tests/behat/bootstrap/*.inc</exclude-pattern>
<exclude-pattern>tests/phpunit/tests/*.Test\.php</exclude-pattern>
</rule>
<!-- Template files may have inline PHP on the same line -->
<rule ref="Drupal.WhiteSpace.ScopeClosingBrace.Line">
<exclude-pattern>*.tpl.php</exclude-pattern>
</rule>
</ruleset>