Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit fdb4cce

Browse files
committed
Replace PHPCS with stricter and more complete standards
1 parent cccfadb commit fdb4cce

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

phpcs.xml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
<?xml version="1.0"?>
2-
<ruleset name="WordPress">
3-
<description>WordPress Coding Standard.</description>
4-
<rule ref="WordPress-Core"/>
5-
<exclude-pattern>vendor/*</exclude-pattern>
6-
<exclude-pattern>tests/*</exclude-pattern>
7-
<exclude-pattern>bin/*</exclude-pattern>
2+
<ruleset name="Semantic Linkbacks">
3+
<description>Semantic Linkbacks Standards</description>
4+
5+
<file>./semantic-linkbacks.php</file>
6+
<file>./includes/</file>
7+
<exclude-pattern>*/includes/*\.(inc|css|js|svg)</exclude-pattern>
8+
<rule ref="PHPCompatibility"/>
9+
<config name="testVersion" value="5.2-"/>
10+
<rule ref="WordPress-Core" />
11+
<rule ref="WordPress.Files.FileName">
12+
<properties>
13+
<property name="strict_class_file_names" value="false" />
14+
</properties>
15+
</rule>
16+
<rule ref="WordPress-Extra" />
17+
<rule ref="WordPress.WP.I18n"/>
18+
<config name="text_domain" value="semantic-linkbacks"/>
19+
<rule ref="WordPress-VIP">
20+
<exclude name="WordPress.VIP.FileSystemWritesDisallow" />
21+
<exclude name="WordPress.VIP.RestrictedFunctions" />
22+
<exclude name="WordPress.VIP.RestrictedVariables" />
23+
<exclude name="WordPress.VIP.SuperGlobalInputUsage" />
24+
<exclude name="WordPress.VIP.ValidatedSanitizedInput" />
25+
<exclude name="WordPress.CSRF.NonceVerification" />
26+
<exclude name="WordPress.XSS.EscapeOutput" />
27+
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page" />
28+
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page_nopaging" />
29+
</rule>
830
</ruleset>

0 commit comments

Comments
 (0)