<?xml version="1.0"?>
<ruleset name="Quick Setup Cleaner WPCS">
    <description>PHPCS rules for WordPress Coding Standards in the Quick Setup Cleaner plugin.</description>

    <!-- Scan everything in plugin root -->
    <file>./</file>

    <!-- Exclude non-PHP/irrelevant paths -->
    <exclude-pattern>vendor/*</exclude-pattern>
    <exclude-pattern>node_modules/*</exclude-pattern>
    <exclude-pattern>.gitignore</exclude-pattern>
    <exclude-pattern>*.md</exclude-pattern>
    <exclude-pattern>*.txt</exclude-pattern>
    <exclude-pattern>*.json</exclude-pattern>
    <exclude-pattern>*.lock</exclude-pattern>
    <exclude-pattern>*.xml</exclude-pattern>
    <exclude-pattern>*.yml</exclude-pattern>
    <exclude-pattern>*.yaml</exclude-pattern>
    <exclude-pattern>assets/*</exclude-pattern>
    <exclude-pattern>languages/*</exclude-pattern>

    <!-- WordPress Coding Standards -->
    <rule ref="WordPress-Core" />
    <rule ref="WordPress-Docs" />
    <rule ref="WordPress-Extra" />

    <!-- PHP compatibility check -->
    <config name="testVersion" value="7.4-" />

    <!-- Allow short array syntax -->
    <rule ref="Generic.Arrays.DisallowLongArraySyntax" />

    <!-- Ignore warning for inline HTML in admin pages -->
    <rule ref="WordPress.Security.EscapeOutput" />
</ruleset>
