<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<ruleset name="Magento">
    <description>Magento coding standard.</description>
    <rule ref="Zend.Files.ClosingTag"/>
    <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
    <rule ref="Generic.WhiteSpace.ScopeIndent"/>
    <rule ref="Generic.Files.LineLength">
        <properties>
            <property name="lineLimit" value="120"/>
            <property name="absoluteLineLimit" value="120"/>
        </properties>
    </rule>
    <rule ref="Generic.Files.LineEndings"/>
    <rule ref="PEAR.NamingConventions.ValidClassName"/>
    <rule ref="Squiz.Functions.GlobalFunction"/>
    <rule ref="Zend.NamingConventions.ValidVariableName">
        <!-- Excluding as it conflicts with the PSR2 standard which over rides this one -->
        <exclude name="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
    </rule>
    <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
    <rule ref="Generic.PHP.DisallowShortOpenTag"/>
    <rule ref="PEAR.Classes.ClassDeclaration"/>
    <rule ref="PEAR.Functions.FunctionDeclaration"/>
    <rule ref="Squiz.Scope.MethodScope"/>
    <rule ref="Generic.Functions.CallTimePassByReference"/>
    <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
    <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
    <rule ref="Generic.ControlStructures.InlineControlStructure"/>
    <rule ref="PEAR.ControlStructures.ControlSignature"/>
    <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
    <rule ref="Squiz.Commenting.DocCommentAlignment"/>
    <rule ref="Generic.PHP.DeprecatedFunctions"/>
    <rule ref="../../../../../../../../../../dev/tests/static/framework/Magento"/>
</ruleset>
