-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathphpcs.xml
31 lines (25 loc) · 1.04 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"?>
<ruleset name="Mautic/WordPress Plugin">
<description>Mautic wordpress plugin rules for PHP_CodeSniffer</description>
<file>.</file>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>languages/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>dist/*</exclude-pattern>
<arg name="extensions" value="php" />
<rule ref="WordPress" />
<!-- exclude the 'empty' index files from some documentation checks -->
<rule ref="Squiz.Commenting.FileComment">
<exclude-pattern>*/index.php</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.InlineComment">
<exclude-pattern>*/index.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.EnqueuedResources">
<exclude-pattern>*/wpmautic.php</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
<exclude-pattern>*/wpmautic.php</exclude-pattern>
</rule>
</ruleset>