<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="HTML-API" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">

    <description>A custom set of rules to check for a WPized WordPress project</description>
    <arg name="colors"/>
    <arg name="tab-width" value="4" />

    <!-- Only check the PHP files. -->
    <arg name="extensions" value="php"/>

    <!-- Check PHP version compatibility. -->
    <rule ref="PHPCompatibility"/>
    <config name="testVersion" value="7.4-"/>

    <file>./src/</file>
    <file>./tests/</file>

    <!-- https://gist.github.com/gsherwood/9d22f634c57f990a7c64 -->
    <!-- http://www.thisprogrammingthing.com/2015/creating-your-own-standard-in-phpcs/ -->
    <!-- Use PSR2 as a base.-->
    <rule ref="PSR2">
    </rule>

    <exclude-pattern>*/vendor/*</exclude-pattern>
    <exclude-pattern>*/tests/_support/*</exclude-pattern>
</ruleset>
