Skip to content

Instantly share code, notes, and snippets.

Created March 5, 2012 11:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
php code sniffer + zend
<?xml version="1.0"?>
<ruleset name="Zend">
<description>A coding standard based on an early Zend Framework coding standard. Note that this standard is out of date.</description>
<!-- Include some sniffs from all around the place -->
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="PEAR.Classes.ClassDeclaration"/>
<rule ref="PEAR.ControlStructures.ControlSignature"/>
<rule ref="PEAR.Functions.FunctionCallSignature"/>
<rule ref="PEAR.Functions.ValidDefaultValue"/>
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Squiz.Functions.GlobalFunction"/>
<!-- Lines can be 80 chars long, show errors at 120 chars -->
<rule ref="Generic.Files.LineLength">
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="120"/>
<!-- Use Unix newlines -->
<rule ref="Generic.Files.LineEndings">
<property name="eolChar" value="\n"/>
<rule ref="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<rule ref="Generic.Files.LineLength.TooLong">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment