<?xml version="1.0"?>
<ruleset name="global_media">
    <description>
        Rules for the Multisite Global Media project, a WordPress Multisite plugin.
    </description>

    <!-- Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
    <!-- Display process. -->
    <arg value="sp"/>
    <!-- Use colors on output. -->
    <arg name="colors"/>
    <!-- Use only php files. -->
    <arg name="extensions" value="php"/>

    <file>multisite-global-media.php</file>
    <file>./src</file>

    <!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
    <config name="testVersion" value="7.0-"/>

    <!-- Rules: WordPress Coding Standards -->
    <!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
    <!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
    <config name="minimum_supported_wp_version" value="5.0"/>

    <!-- Code Reviews Rules -->
    <rule ref="Inpsyde">
        <exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected"/>
        <exclude name="Inpsyde.CodeQuality.LineLength.TooLong"/>
    </rule>
    <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
        <exclude-pattern>./tests/php/bootstrap.php</exclude-pattern>
    </rule>
    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array" value="multisite-global-media"/>
        </properties>
    </rule>

</ruleset>

