<?xml version="1.0"?>
<ruleset name="Drupal">
  <description>Drupal coding standards</description>

  <!-- Check custom code only -->
  <file>web/modules/custom</file>
  <file>web/themes/custom</file>

  <!-- Exclude vendor and generated files -->
  <exclude-pattern>*/vendor/*</exclude-pattern>
  <exclude-pattern>*/node_modules/*</exclude-pattern>
  <exclude-pattern>*.min.js</exclude-pattern>

  <!-- Use Drupal and DrupalPractice standards -->
  <rule ref="Drupal">
    <!-- Exclude some rules that might be too strict -->
    <exclude name="Drupal.Commenting.DocComment.MissingShort"/>
    <exclude name="Drupal.Commenting.FunctionComment.Missing"/>
  </rule>
  
  <rule ref="DrupalPractice"/>

  <!-- Show progress and use colors -->
  <arg name="colors"/>
  <arg value="p"/>
</ruleset>

