<?xml version="1.0"?>
<ruleset name="Divi Ajax Filter">
  <description>PHPCS configuration for Divi Ajax Filter plugin</description>

  <!-- Include Elegant Themes Marketplace ruleset -->
  <!-- Use relative path from plugin root -->
  <rule ref="../marketplace-phpcs/ruleset.xml" />

  <!-- Exclude directories and files that shouldn't be checked -->
  <exclude-pattern>*/node_modules/*</exclude-pattern>
  <exclude-pattern>*/vendor/*</exclude-pattern>
  <exclude-pattern>*/build/*</exclude-pattern>
  <exclude-pattern>*/blocks/build/*</exclude-pattern>
  <exclude-pattern>*/blocks-pro/build/*</exclude-pattern>
  <exclude-pattern>*/divi/divi-5/visual-builder/src/*</exclude-pattern>
  <exclude-pattern>*/divi/divi-4/includes/*</exclude-pattern>
  <exclude-pattern>*/tests/*</exclude-pattern>
  <exclude-pattern>*/.git/*</exclude-pattern>
  <exclude-pattern>*/.github/*</exclude-pattern>
  <exclude-pattern>*/dev/*</exclude-pattern>
  
  <!-- Exclude non-PHP files -->
  <exclude-pattern>*.js</exclude-pattern>
  <exclude-pattern>*.jsx</exclude-pattern>
  <exclude-pattern>*.css</exclude-pattern>
  <exclude-pattern>*.scss</exclude-pattern>
  <exclude-pattern>*.json</exclude-pattern>
  <exclude-pattern>*.map</exclude-pattern>
  <exclude-pattern>*.md</exclude-pattern>
  <exclude-pattern>*.txt</exclude-pattern>
  <exclude-pattern>*.log</exclude-pattern>
  <exclude-pattern>*.svg</exclude-pattern>
  <exclude-pattern>*.png</exclude-pattern>
  <exclude-pattern>*.jpg</exclude-pattern>
  <exclude-pattern>*.jpeg</exclude-pattern>
  <exclude-pattern>*.gif</exclude-pattern>
  <exclude-pattern>*.html</exclude-pattern>
  <exclude-pattern>*.sh</exclude-pattern>
  <exclude-pattern>*.bat</exclude-pattern>
  <exclude-pattern>*.lock</exclude-pattern>
  <exclude-pattern>*.rem</exclude-pattern>
  
  <!-- Exclude specific files -->
  <exclude-pattern>asset-manifest.json</exclude-pattern>
  <exclude-pattern>package.json</exclude-pattern>
  <exclude-pattern>package-lock.json</exclude-pattern>
  <exclude-pattern>yarn.lock</exclude-pattern>
  <exclude-pattern>webpack.config.js</exclude-pattern>
  <exclude-pattern>composer.json</exclude-pattern>
  <exclude-pattern>composer.lock</exclude-pattern>
  
  <!-- Exclude legacy settings file (causes PHPCS library errors with PHP 8.1+) -->
  <exclude-pattern>*/legacy-settings/settings.php</exclude-pattern>
</ruleset>

