Skip to content

Commit 8ca0d3b

Browse files
committed
Added "PilotIn" PHP Coding Standards 🚀
0 parents commit 8ca0d3b

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

‎PilotIn/ruleset.xml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PilotIn">
3+
4+
<description>Pilot'In Coding Standards</description>
5+
6+
<!-- To customize WordPress properties: -->
7+
<!-- https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#custom-word-delimiters-in-hook-names -->
8+
9+
<!-- WordPress ruleset -->
10+
<rule ref="WordPress">
11+
<!-- Disable Yoda conditions check as an example. -->
12+
<exclude name="WordPress.PHP.YodaConditions" />
13+
</rule>
14+
15+
<!-- Add extra words delimiter for hook names -->
16+
<rule ref="WordPress.NamingConventions.ValidHookName">
17+
<properties>
18+
<property name="additionalWordDelimiters" value="-/."/>
19+
</properties>
20+
</rule>
21+
22+
<!-- WordPress-Docs ruleset -->
23+
<!-- https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/WordPress-Docs/ruleset.xml -->
24+
<rule ref="WordPress-Docs">
25+
26+
<!-- Allow "Commented out code" -->
27+
<exclude name="Squiz.PHP.CommentedOutCode"/>
28+
29+
<!-- Allow "Missing comments" -->
30+
<exclude name="Squiz.Commenting.InlineComment"/>
31+
<exclude name="Squiz.Commenting.FileComment"/>
32+
<exclude name="Squiz.Commenting.FunctionComment"/>
33+
34+
<!-- Allow "Space indent" -->
35+
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
36+
37+
</rule>
38+
39+
<!-- WordPress-Extra ruleset -->
40+
<!-- https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/WordPress-Extra/ruleset.xml -->
41+
<rule ref="WordPress-Extra">
42+
43+
<!-- Prevent duplicate messages + deprecation notice from deprecated sniff. -->
44+
<exclude name="WordPress.WP.TimezoneChange.timezone_change_date_default_timezone_set"/>
45+
<exclude name="WordPress.WP.TimezoneChange.DeprecatedSniff"/>
46+
47+
</rule>
48+
49+
</ruleset>

0 commit comments

Comments
 (0)