<?xml version="1.0"?>
<ruleset name="ai-chat-by-agis">
  <description>WordPress-only PHPCS rules for this plugin.</description>

  <file>.</file>

  <exclude-pattern>vendor/*</exclude-pattern>
  <exclude-pattern>node_modules/*</exclude-pattern>
  <exclude-pattern>dist/*</exclude-pattern>
  <exclude-pattern>build/*</exclude-pattern>
  <exclude-pattern>assets/*</exclude-pattern>

  <arg name="extensions" value="php"/>

  <rule ref="WordPress-Core"/>
  <rule ref="WordPress-Docs"/>
  <rule ref="WordPress-Extra"/>

  <!-- Allow agis_chat and ai_chat_by_agis prefixes for this plugin -->
  <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
    <properties>
      <property name="prefixes" type="array">
        <element value="agis_chat"/>
        <element value="ai_chat_by_agis"/>
      </property>
    </properties>
  </rule>
</ruleset>
