summaryrefslogblamecommitdiffstats
path: root/.phpcs.xml
blob: f8bb5f35c740de148ecdc02a3d124cbd4fa57d4a (plain) (tree)
























                                                                                                                                
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
    <description>PHPCS configuration for hmno.migrate</description>

    <exclude-pattern>*/src/Standards/*/Tests/*\.(inc|css|js)$</exclude-pattern>
    <exclude-pattern>*/tests/Core/*/*\.(inc|css|js)$</exclude-pattern>

    <arg name="basepath" value="."/>
    <arg name="colors"/>
    <arg name="parallel" value="75"/>
    <arg value="np"/>

    <!-- Don't hide tokenizer exceptions -->
    <rule ref="Internal.Tokenizer.Exception">
        <type>error</type>
    </rule>

    <!-- Include the whole PEAR standard -->
    <rule ref="WordPress">
        <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
        <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
        <exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped" />
        <exclude name="Squiz.Commenting.FunctionComment.Missing" />
    </rule>
</ruleset>