-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
executable file
·23 lines (20 loc) · 1.18 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
<?xml version="1.0"?>
<ruleset name="Papi">
<description>Papi rules for PHP_CodeSniffer</description>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="WordPress-Core">
<exclude name="PEAR.Functions.FunctionCallSignature.EmptyLine" />
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions" />
<exclude name="WordPress.Arrays.ArrayDeclaration" />
<exclude name="WordPress.PHP.YodaConditions" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBetweenStructureColon" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.SpaceBeforeClosureOpenParenthesis" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword" />
</rule>
</ruleset>