-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpcs.xml
32 lines (27 loc) · 1.06 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Machine Learning">
<description>Sniffs for plugin and VIP WordPress standards</description>
<rule ref="WordPress-Core">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="WordPress.Files.FileName" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="machine-learning" />
</properties>
</rule>
<rule ref="Squiz.Classes.ClassFileName" />
<arg name="extensions" value="php"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Allow invoking just `phpcs` on command line without assuming STDIN for file input. -->
<file>.</file>
<exclude-pattern>/js/dist/*.asset.php</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>/tests/bootstrap.php</exclude-pattern>
</ruleset>