<?xml version="1.0" ?>
<ruleset>
    <!-- Provide installation path to the WordPress Coding Standards. -->
    <config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />

    <!-- Check only files with .php extension. -->
    <arg name="extensions" value="php" />

    <!-- Exclude from checking package managers directiories. -->
    <exclude-pattern>*/**/*-display.php</exclude-pattern>
    <exclude-pattern>*/vendor/*</exclude-pattern>
    <exclude-pattern>*/node_modules/*</exclude-pattern>

    <!-- Disallow using a short array syntax. -->
    <rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
        <type>warning</type>
    </rule>

    <!-- Extend WordPress Coding Standard ruleset. -->
    <rule ref="WordPress-Extra" />

    <!-- Check for usage of deprecated functions. -->
    <rule ref="WordPress.WP.DeprecatedFunctions">
        <properties>
            <property name="minimum_supported_version" value="4.0" />
        </properties>
    </rule>
</ruleset>