<?xml version="1.0"?>
<ruleset name="BranchUsageChecker"
  xmlns="http://pmd.sf.net/ruleset/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
  xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
  <description>PHPMD rules for Branch Usage Checker</description>

  <rule ref="rulesets/cleancode.xml">
    <!-- Laravel uses facades and static calls extensively -->
    <exclude name="StaticAccess"/>
  </rule>

  <rule ref="rulesets/codesize.xml"/>

  <rule ref="rulesets/unusedcode.xml"/>

  <!-- Allow short variables common in loops and closures -->
  <rule ref="rulesets/naming.xml/ShortVariable">
    <properties>
      <property name="exceptions" value="e,k,v,m,id"/>
    </properties>
  </rule>
</ruleset>
