Skip to content

Commit 9b319bf

Browse files
committed
update PHPCS
1 parent b2e79c5 commit 9b319bf

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

phpcs.xml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
<?xml version="1.0"?>
2-
<ruleset name="WordPress">
3-
<description>WordPress Coding Standard.</description>
4-
<rule ref="WordPress-Core">
5-
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
6-
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
2+
<ruleset name="NodeInfo">
3+
<description>WordPress NodeInfo Standards</description>
4+
5+
<file>./nodeinfo.php</file>
6+
<file>./includes/</file>
7+
<exclude-pattern>*/includes/*\.(inc|css|js|svg)</exclude-pattern>
8+
<exclude-pattern>*/vendor/*</exclude-pattern>
9+
<exclude-pattern>*/libraries/*</exclude-pattern>
10+
<exclude-pattern>*/config/*</exclude-pattern>
11+
<exclude-pattern>*/node_modules/*</exclude-pattern>
12+
<exclude-pattern>*/tests/*</exclude-pattern>
13+
<rule ref="PHPCompatibility"/>
14+
<config name="testVersion" value="5.6-"/>
15+
<rule ref="WordPress-Core" />
16+
<rule ref="PHPCompatibilityWP"/>
17+
<config name="minimum_supported_wp_version" value="4.9"/>
18+
<rule ref="WordPress.WP.DeprecatedFunctions" />
19+
<rule ref="WordPress.Files.FileName">
20+
<properties>
21+
<property name="strict_class_file_names" value="false" />
22+
</properties>
23+
</rule>
24+
<rule ref="WordPress-Extra" />
25+
<rule ref="WordPress.WP.I18n"/>
26+
<config name="text_domain" value="nodeinfo,default"/>
27+
<rule ref="WordPress.Security">
28+
<exclude name="WordPress.Security.ValidatedSanitizedInput" />
29+
<exclude name="WordPress.Security.NonceVerification" />
30+
<exclude name="WordPress.Security.EscapeOutput" />
731
</rule>
832
</ruleset>

0 commit comments

Comments
 (0)