phpcs.xml.dist 907 Bytes
Newer Older
1 2 3 4
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">

    <arg value="snp"/>
noplanman's avatar
noplanman committed
5
    <arg name="colors"/>
6 7
    <arg name="extensions" value="php"/>
    <arg name="encoding" value="utf-8"/>
noplanman's avatar
noplanman committed
8
    <arg name="parallel" value="8"/>
9 10 11 12 13 14 15
    <arg name="report-width" value="150"/>

    <file>.</file>

    <!-- Exclude Composer vendor directory. -->
    <exclude-pattern>*/vendor/*</exclude-pattern>

16 17 18 19
    <rule ref="WordPress-Core">
        <exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
        <exclude name="WordPress.PHP.DisallowShortTernary.Found"/>
    </rule>
20

21 22 23 24 25 26
    <rule ref="PEAR.Functions.FunctionCallSignature">
        <exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
        <exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
        <exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
    </rule>

27
</ruleset>