This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.ruleset.xml
47 lines (43 loc) · 2.66 KB
/
phpcs.ruleset.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
<?xml version="1.0"?>
<ruleset>
<!-- Path to strip from the front of file paths inside reports (displays shorter paths) -->
<arg name="basepath" value="." />
<!-- Exclude core and platform things. -->
<exclude-pattern>*/web/wp-content/mu-plugins/pantheon*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/akismet/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/hello-dolly/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/index.php</exclude-pattern>
<exclude-pattern>*/web/wp-content/themes/twenty*</exclude-pattern>
<exclude-pattern>*/web/wp-content/themes/index.php</exclude-pattern>
<exclude-pattern>*/web/wp-content/index.php</exclude-pattern>
<exclude-pattern>*/web/wp-content/mu-plugins/pantheon/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/mu-plugins/altis-cms/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/pantheon-advanced-page-cache/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/lh-hsts/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/wp-native-php-sessions/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/wp-user-signups/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/simple-local-avatars/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/altis-reusable-blocks/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/authorship/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/asset-loader/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/altis-accelerate/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/debug-bar-elasticpress/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/elasticpress/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/gaussholder/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/amf-wordpress/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/asset-manager-framework/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/smart-media/*</exclude-pattern>
<exclude-pattern>*/web/wp-content/plugins/safe-svg/*</exclude-pattern>
<!-- Use HM Coding Standards -->
<rule ref="HM-Minimum" />
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<!-- Exclude this sniff on the theme functions.php file, which needs to be able to both declare symbols and execute code. -->
<exclude-pattern>*/web/wp-content/mu-plugins/pantheon.php</exclude-pattern>
</rule>
<!-- Other standards can be used instead or in addition... -->
<!-- <rule ref="HM-Minimum" -->
<!-- <rule ref="WordPress" /> -->
<!-- <rule ref="WordPress-Core" /> -->
<!-- <rule ref="WordPress-Docs" /> -->
<!-- <rule ref="WordPress-Extra" /> -->
</ruleset>