<?xml version="1.0"?>
<ruleset>
    <arg name="basepath" value="."/>
    <arg name="extensions" value="php"/>
    <arg name="parallel" value="80"/>
    <arg name="cache" value=".phpcs-cache"/>
    <arg name="colors" />

    <!-- Ignore warnings and show progress of the run -->
    <arg value="np"/>

    <exclude-pattern>../custom/plugins/ShyimProfiler/*</exclude-pattern>
    <exclude-pattern>../custom/plugins/Swag*</exclude-pattern>
    <exclude-pattern>../engine/Shopware/Plugins/Local/Backend/NfbAutomation/vendor/*</exclude-pattern>

    <rule ref="PSR1" />
    <rule ref="PSR2">
        <exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
        <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>

        <exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
        <exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
    </rule>

    <rule ref="PSR1.Classes.ClassDeclaration">
        <exclude-pattern>../custom/plugins/NfbGeoLocalisation/Controllers/Frontend/NfbGeoLocalisation.php</exclude-pattern>
        <exclude-pattern>../custom/project/NfContent/Controllers/Backend/NfCaches.php</exclude-pattern>
        <exclude-pattern>../custom/project/NfContent/Controllers/Frontend/NfContent.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Frontend/NfEuronics.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Widgets/NfEuronics.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Frontend/Cpc.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfMerchantSearch/Controllers/Frontend/NfMerchantSearch.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfStyleguide/Controllers/Frontend/NfStyleguide.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Widgets/NfNewsletter.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Frontend/NfNewsletter.php</exclude-pattern>

        <exclude-pattern>../engine/Shopware/Plugins/Local/Backend/NfbAutomation/*</exclude-pattern>
    </rule>

    <rule ref="Squiz.Classes.ValidClassName">
        <exclude-pattern>../custom/plugins/NfbGeoLocalisation/Controllers/Frontend/NfbGeoLocalisation.php</exclude-pattern>
        <exclude-pattern>../custom/project/NfContent/Controllers/Backend/NfCaches.php</exclude-pattern>
        <exclude-pattern>../custom/project/NfContent/Controllers/Frontend/NfContent.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Widgets/NfEuronics.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Frontend/NfEuronics.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Frontend/Cpc.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Subscriber/sRewriteTable.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfMerchantSearch/Controllers/Frontend/NfMerchantSearch.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfStyleguide/Controllers/Frontend/NfStyleguide.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Widgets/NfNewsletter.php</exclude-pattern>
        <exclude-pattern>../custom/plugins/NfEuronics/Controllers/Frontend/NfNewsletter.php</exclude-pattern>

        <exclude-pattern>../engine/Shopware/Plugins/Local/Backend/NfbAutomation/*</exclude-pattern>
    </rule>

    <rule ref="Generic.Files.LineEndings" />
    <rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired" />

</ruleset>
