<?xml version="1.0"?>
<ruleset name="WP-Auth0" namespace="WPAuth0\CS\Standard">
    <description>A custom coding standard for WP-Auth0</description>

    <!-- Internal tool, will be removed-->
    <exclude-pattern>/account_cleanup/*</exclude-pattern>

    <!-- Not currently checking JS or CSS -->
    <exclude-pattern>/assets/*</exclude-pattern>

    <!-- Tests have their own ruleset (different PHP version) -->
    <exclude-pattern>/tests/*</exclude-pattern>

    <!-- Dev tools only, currently -->
    <exclude-pattern>/vendor/*</exclude-pattern>

    <!-- Not currently checking JS -->
    <exclude-pattern>/webtask/*</exclude-pattern>

    <!-- Deprecated so no changes needed -->
    <exclude-pattern>/lib/admin/WP_Auth0_Admin_Dashboard.php</exclude-pattern>
    <exclude-pattern>/lib/dashboard-widgets/*</exclude-pattern>

    <config name="testVersion" value="5.3-"/>
    <config name="showProgress" value="1"/>
    <config name="extensions" value="php"/>
    <config name="minimum_supported_wp_version" value="3.8"/>

    <arg name="colors"/>

    <rule ref="Generic.CodeAnalysis"/>
    <rule ref="Generic.Commenting.Todo"/>
    <rule ref="PHPCompatibility"/>
    <rule ref="WordPress-Docs"/>
    <rule ref="WordPress-Core">
        <exclude name="WordPress.Files.FileName"/>
    </rule>
    <rule ref="WordPress.VIP.DirectDatabaseQuery"/>
    <rule ref="WordPress.VIP.SlowDBQuery"/>
    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array" value="wp-auth0" />
        </properties>
    </rule>
</ruleset>