Skip to content

Instantly share code, notes, and snippets.

@javilumbrales
Created October 18, 2017 22:19
Show Gist options
  • Select an option

  • Save javilumbrales/02b536bfef5fa3a60433443f1323d62e to your computer and use it in GitHub Desktop.

Select an option

Save javilumbrales/02b536bfef5fa3a60433443f1323d62e to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<ruleset name="PSR2Mage">
<description>PSR2 with exclude rules for Magento 1 code</description>
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2">
<exclude name="Squiz.Classes.ValidClassName"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
</rule>
<rule ref="PEAR.NamingConventions.ValidClassName"/>
<!-- Only one argument per line in multi-line function calls -->
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment