-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml.dist
54 lines (43 loc) · 1.53 KB
/
phpcs.xml.dist
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
<?xml version="1.0" ?>
<ruleset name="WPCS for Bookmark Card">
<config name="minimum_supported_wp_version" value="5.4" />
<rule ref="WordPress-Core">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="WordPress.PHP.DisallowShortTernary" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="bookmark-card" />
</property>
</properties>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<properties>
<property name="exclude" type="array">
<!-- wp_parse_url() only exists for inconsistency in PHP < 5.4 -->
<element value="parse_url" />
</property>
</properties>
</rule>
<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.6-" />
<rule ref="PHPCompatibilityWP" />
<!-- Show details about violated sniffs -->
<arg value="s" />
<!-- Iterate over all PHP files by default -->
<arg name="extensions" value="php" />
<file>.</file>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./" />
<!-- Check up to 20 files simultaneously. -->
<arg name="parallel" value="20" />
<!-- Third-party or auto-generated code -->
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/release/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>