<?xml version="1.0"?>
<ruleset name="Minimum Order Value for WooCommerce">
    <description>PHP CodeSniffer configuration for Minimum Order Value for WooCommerce plugin</description>

    <!-- Check all PHP files in the plugin -->
    <file>.</file>

    <!-- Exclude vendor and node_modules -->
    <exclude-pattern>*/vendor/*</exclude-pattern>
    <exclude-pattern>*/node_modules/*</exclude-pattern>
    <exclude-pattern>*/.git/*</exclude-pattern>

    <!-- Include WordPress Coding Standards -->
    <rule ref="WordPress">
        <!-- Allow short array syntax -->
        <exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
        
        <!-- Set the correct text domain for this plugin -->
        <properties>
            <property name="text_domain" type="array">
                <element value="minimum-order-value-for-woocommerce"/>
            </property>
        </properties>
    </rule>

    <!-- Verify that the correct text domain is used -->
    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array">
                <element value="minimum-order-value-for-woocommerce"/>
            </property>
        </properties>
    </rule>

    <!-- Check for PHP compatibility -->
    <config name="minimum_supported_wp_version" value="5.0"/>
    <config name="testVersion" value="7.4-"/>
</ruleset>