<?xml version="1.0"?>
<!--
/**
 * © Copyright 2013-present Adobe. All rights reserved.
 *
 * This file is licensed under OSL 3.0 or your existing commercial license or subscription
 * agreement with Magento or its Affiliates (the "Agreement).
 *
 * You may obtain a copy of the OSL 3.0 license at http://opensource.org/licenses/osl-3.0.php Open
 * Software License (OSL 3.0) or by contacting engcom@adobe.com for a copy.
 *
 * Subject to your payment of fees and compliance with the terms and conditions of the Agreement,
 * the Agreement supersedes the OSL 3.0 license with respect to this file.
 */
-->
<ruleset name="Magento">
    <description>Custom Magento ECE Tools coding standard.</description>

    <rule ref="PSR2"/>

    <rule ref="Generic.Functions.CallTimePassByReference"/>
    <rule ref="Generic.PHP.DeprecatedFunctions"/>
    <rule ref="Generic.Files.LineLength">
        <properties>
            <property name="lineLimit" value="120"/>
            <property name="absoluteLineLimit" value="120"/>
        </properties>
    </rule>

    <rule ref="Squiz.Commenting.DocCommentAlignment"/>
    <rule ref="Squiz.Functions.GlobalFunction"/>
    <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
    <rule ref="Squiz.Commenting.VariableComment" />
    <rule ref="Squiz.Commenting.ClassComment" />

    <exclude-pattern>_files</exclude-pattern>
    <exclude-pattern>_file</exclude-pattern>
</ruleset>
