Last active
January 18, 2016 12:34
-
-
Save vdubyna/3900045 to your computer and use it in GitHub Desktop.
Magento CodeSniffer rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php | |
* If you did not receive a copy of the license and are unable to | |
* obtain it through the world-wide-web, please send an email | |
* to license@magentocommerce.com so we can send you a copy immediately. | |
* | |
* DISCLAIMER | |
* | |
* Do not edit or add to this file if you wish to upgrade Magento to newer | |
* versions in the future. If you wish to customize Magento for your | |
* needs please refer to http://www.magentocommerce.com for more information. | |
* | |
* @category tests | |
* @package static | |
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) | |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | |
*/ | |
--> | |
<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"/> | |
<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"/> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment