<?xml version="1.0"?>
<ruleset name="MyPlugin">
    <description>Custom ruleset for WordPress plugin</description>
    
    <!-- What to scan -->
    <file>.</file>
    
    <!-- Exclude paths -->
    <exclude-pattern>/vendor/*</exclude-pattern>
    <exclude-pattern>/node_modules/*</exclude-pattern>
    
    <!-- Include WordPress Coding Standards -->
    <rule ref="WordPress">
        <!-- You can exclude specific rules you don't want -->
        <!--
        <exclude name="WordPress.Files.FileName"/>
        -->
    </rule>
    
    <!-- Show progress -->
    <arg value="p"/>
    
    <!-- Show sniff codes in all reports -->
    <arg value="s"/>
    
    <!-- Allow short array syntax -->
    <rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
        <severity>0</severity>
    </rule>
    
    <!-- Scan only PHP files -->
    <arg name="extensions" value="php"/>
    
    <!-- Verify that the text domain is set to the desired text domain -->
    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array">
                <element value="wc-qr-payment"/>
            </property>
        </properties>
    </rule>
</ruleset>