<?xml version="1.0"?>
<ruleset name="Government of Yukon coding standards">

  <exclude-pattern>*/.git/*</exclude-pattern>
  <exclude-pattern>*/css/*</exclude-pattern>
  <exclude-pattern>*/js/*</exclude-pattern>
  <exclude-pattern>*/icons/*</exclude-pattern>
  <exclude-pattern>*/vendor/*</exclude-pattern>
  <exclude-pattern>*/node_modules/*</exclude-pattern>

  <arg name="extensions" value="php,module,inc,install,test,profile,theme,info,txt,md,yml" />

  <!-- For colored cli output -->
  <arg name="colors"/>
  <!-- To show where the rule comes from. Equivalent to phpcs -s -->
  <arg value="sp"/>

  <rule ref="Drupal"/>

  <!-- Allow TODOs formatted like // TODO, not just // @todo. -->
  <rule ref="Drupal.Commenting.TodoComment.TodoFormat">
    <severity>0</severity>
  </rule>

  <!--
  Allow certain lines to be long in a text file.

  Lines of real text are still expected to be limited to 80 characters for easy
  reading.
  -->
  <rule ref="Drupal.Files.TxtFileLineLength.TooLong">
    <severity>0</severity>
  </rule>
</ruleset>
