<?xml version="1.0"?>

<ruleset name="OM4 WordPress">
    <description>OM4 Coding Standards for WordPress projects</description>

    <!-- Define files to check -->
    <file>./log-out-shortcode.php</file>

    <!-- command-line config -->
    <arg name="extensions" value="php" />

    <!-- Include all rules from WordPress standard -->
    <rule ref="WordPress">
        <!-- Ignore filename check -->
        <exclude name="WordPress.Files.FileName" />
        <!-- Remove specific commenting rules -->
        <exclude name="Squiz.Commenting.FileComment.Missing" />
        <!-- Do not report exception arguments -->
        <exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
        <!-- Leave TODO items alone -->
        <exclude name="Generic.Commenting.Todo.TaskFound" />
    </rule>

    <!-- Set supported WP version same as the plugin itself -->
    <config name="minimum_supported_wp_version" value="6.0" />

    <!-- Include all rules from phpcompatibility/phpcompatibility-wp -->
    <rule ref="PHPCompatibilityWP" />

    <!-- Set supported PHP version same as the plugin itself -->
    <config name="testVersion" value="5.6-" />
</ruleset>
