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

    <rule ref="PSR1">
        <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
    </rule>

    <rule ref="PSR12"/>

    <rule ref="PSR12.Files.FileHeader.IncorrectOrder">
        <exclude-pattern>*/lib/helpers.php</exclude-pattern>
        <exclude-pattern>*/lib/Inflections/*</exclude-pattern>
    </rule>

    <rule ref="PSR12.Files.FileHeader.SpacingAfterBlock">
        <exclude-pattern>*/lib/helpers.php</exclude-pattern>
        <exclude-pattern>*/lib/Inflections/*</exclude-pattern>
    </rule>

    <rule ref="Generic.Files.LineLength.TooLong">
        <exclude-pattern>*/lib/Inflections/*</exclude-pattern>
    </rule>

    <rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
        <exclude-pattern>*/lib/Inflections/*</exclude-pattern>
    </rule>
</ruleset>
