forked from gravitywiz/gf-feed-forge
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
36 lines (28 loc) · 1.38 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="Gravity Wiz Coding Standards">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
<arg name="extensions" value="php,css"/>
<file>.</file>
<!-- Exclude Composer vendor directory. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/third-party/*</exclude-pattern>
<!-- Exclude NPM modules -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Handled by ESLint -->
<exclude-pattern>*.js</exclude-pattern>
<!-- Run against the PHPCompatibility ruleset -->
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="5.6-"/>
<!-- Turns on the WordPress Standard -->
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<!-- Switch to square bracket array syntax -->
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
</ruleset>