|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <ruleset name="PilotIn"> |
3 | 3 |
|
4 | | -<description>Pilot'In Coding Standards</description> |
| 4 | + <description>Pilot'In Coding Standards</description> |
5 | 5 |
|
6 | 6 | <!-- To customize WordPress properties: --> |
7 | 7 | <!-- https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#custom-word-delimiters-in-hook-names --> |
|
10 | 10 | <rule ref="WordPress"> |
11 | 11 |
|
12 | 12 | <!-- Disable Yoda conditions check as an example. --> |
13 | | - <exclude name="WordPress.PHP.YodaConditions" /> |
| 13 | + <exclude name="WordPress.PHP.YodaConditions"/> |
14 | 14 |
|
15 | 15 | <!-- Disable this rule so we can use "Generic.Formatting.SpaceAfterNot" rule --> |
16 | | - <exclude name="WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter" /> |
| 16 | + <exclude name="WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter"/> |
17 | 17 |
|
18 | 18 | <!-- Allow back space indent --> |
19 | | - <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" /> |
| 19 | + <exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/> |
| 20 | + |
| 21 | + <!-- Allow custom file name --> |
| 22 | + <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> |
20 | 23 |
|
21 | 24 | </rule> |
22 | 25 |
|
23 | 26 | <!-- Prevent space after not "!" --> |
24 | 27 | <rule ref="Generic.Formatting.SpaceAfterNot"> |
25 | 28 | <properties> |
26 | | - <property name="spacing" value="0" /> |
| 29 | + <property name="spacing" value="0"/> |
27 | 30 | </properties> |
28 | 31 | </rule> |
29 | 32 |
|
|
36 | 39 | </rule> |
37 | 40 |
|
38 | 41 | <!-- Disable Tab indent --> |
39 | | - <rule ref="Generic.WhiteSpace.DisallowTabIndent" /> |
| 42 | + <rule ref="Generic.WhiteSpace.DisallowTabIndent"/> |
40 | 43 |
|
41 | 44 | <!-- Add extra words delimiter for hook names --> |
42 | 45 | <rule ref="WordPress.NamingConventions.ValidHookName"> |
|
47 | 50 |
|
48 | 51 | <!-- WordPress-Docs ruleset --> |
49 | 52 | <!-- https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/WordPress-Docs/ruleset.xml --> |
50 | | -<rule ref="WordPress-Docs"> |
| 53 | + <rule ref="WordPress-Docs"> |
51 | 54 |
|
52 | 55 | <!-- Allow "Commented out code" --> |
53 | 56 | <exclude name="Squiz.PHP.CommentedOutCode"/> |
|
58 | 61 | <exclude name="Squiz.Commenting.FunctionComment"/> |
59 | 62 |
|
60 | 63 | <!-- Allow "Space indent" --> |
61 | | - <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" /> |
| 64 | + <exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/> |
| 65 | + |
| 66 | + <!-- Allow custom file name --> |
| 67 | + <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> |
62 | 68 |
|
63 | 69 | </rule> |
64 | 70 |
|
65 | 71 | <!-- WordPress-Extra ruleset --> |
66 | 72 | <!-- https://github.com/WordPress/WordPress-Coding-Standards/blob/develop/WordPress-Extra/ruleset.xml --> |
67 | | -<rule ref="WordPress-Extra"> |
| 73 | + <rule ref="WordPress-Extra"> |
68 | 74 |
|
69 | | -<!-- Prevent duplicate messages + deprecation notice from deprecated sniff. --> |
70 | | -<exclude name="WordPress.WP.TimezoneChange.timezone_change_date_default_timezone_set"/> |
71 | | -<exclude name="WordPress.WP.TimezoneChange.DeprecatedSniff"/> |
| 75 | + <!-- Prevent duplicate messages + deprecation notice from deprecated sniff. --> |
| 76 | + <exclude name="WordPress.WP.TimezoneChange.timezone_change_date_default_timezone_set"/> |
| 77 | + <exclude name="WordPress.WP.TimezoneChange.DeprecatedSniff"/> |
72 | 78 |
|
73 | 79 | <!-- Prevent messages about escaping every values --> |
74 | | -<exclude name="WordPress.Security.EscapeOutput"/> |
| 80 | + <exclude name="WordPress.Security.EscapeOutput"/> |
75 | 81 |
|
76 | 82 | <!-- Disable forcing of closing PHP tag on a new line --> |
77 | | -<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd"/> |
| 83 | + <exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd"/> |
78 | 84 |
|
79 | | -</rule> |
| 85 | + </rule> |
80 | 86 |
|
81 | 87 | <!-- Show sniff codes in all reports --> |
82 | | -<arg value="s"/> |
| 88 | + <arg value="s"/> |
83 | 89 |
|
84 | 90 | <!-- Excludes folders --> |
85 | 91 | <exclude-pattern>*/node_modules/*</exclude-pattern> |
86 | | -<exclude-pattern>*/vendor/*</exclude-pattern> |
| 92 | + <exclude-pattern>*/vendor/*</exclude-pattern> |
87 | 93 |
|
88 | 94 | </ruleset> |
0 commit comments