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

    <file>./bin/</file>
    <file>./Config/formatters.php</file>
    <file>./Exceptions/</file>
    <file>./Formatter/</file>
    <file>./Language/</file>
    <file>./Matcher/</file>
    <file>./Parser/</file>
    <file>./Styles/Cli/Default.php</file>
    <file>./Styles/Latex/Default.php</file>
    <file>./Tests/</file>

    <exclude-pattern>./Tests/Samples/</exclude-pattern>

    <rule ref="PSR12">
        <!-- Ignore too long lines -->
        <exclude name="Generic.Files.LineLength.TooLong"/>

        <!-- Ignore private properties prefixed with underscore -->
        <exclude name="PSR2.Classes.PropertyDeclaration" />

        <!-- Ignore private methods prefixed with underscore -->
        <exclude name="PSR2.Methods.MethodDeclaration" />
    </rule>

    <rule ref="PSR1.Classes.ClassDeclaration">
        <exclude-pattern>./Tests/GreedyLanguageTest.php</exclude-pattern>
    </rule>
    <rule ref="PSR1.Files.SideEffects">
        <exclude-pattern>./Tests/GreedyLanguageTest.php</exclude-pattern>
    </rule>
</ruleset>

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

    <file>./bin/</file>
    <file>./Config/formatters.php</file>
    <file>./Exceptions/</file>
    <file>./Formatter/</file>
    <file>./Language/</file>
    <file>./Matcher/</file>
    <file>./Parser/</file>
    <file>./Styles/Cli/Default.php</file>
    <file>./Styles/Latex/Default.php</file>
    <file>./Tests/</file>

    <exclude-pattern>./Tests/Samples/</exclude-pattern>

    <rule ref="PSR12">
        <!-- Ignore too long lines -->
        <exclude name="Generic.Files.LineLength.TooLong"/>

        <!-- Ignore private properties prefixed with underscore -->
        <exclude name="PSR2.Classes.PropertyDeclaration" />

        <!-- Ignore private methods prefixed with underscore -->
        <exclude name="PSR2.Methods.MethodDeclaration" />

        <!-- We have header comment which is not really a file-level docblock -->
        <exclude name="PSR12.Files.FileHeader.IncorrectOrder" />
    </rule>

    <rule ref="PSR1.Classes.ClassDeclaration">
        <exclude-pattern>./Tests/GreedyLanguageTest.php</exclude-pattern>
    </rule>
    <rule ref="PSR1.Files.SideEffects">
        <exclude-pattern>./Tests/GreedyLanguageTest.php</exclude-pattern>
    </rule>
</ruleset>

Adjust PHP Code Sniffer rules
Adjust PHP Code Sniffer rules
