Skip to content

Instantly share code, notes, and snippets.

@jimrubenstein
Last active April 20, 2018 22:54
Show Gist options
  • Save jimrubenstein/c9cbff41d828aab9d65696a1c336d5d2 to your computer and use it in GitHub Desktop.
Save jimrubenstein/c9cbff41d828aab9d65696a1c336d5d2 to your computer and use it in GitHub Desktop.
Custom PHP Code Sniffer ruleset, uses PSR2 as a base and uses tabs for indenting instead of spaces.
<?xml version="1.0"?>
<ruleset name="CustomCfg">
<description>
PSR2 style guide + tab indent instead of space.
</description>
<arg name="tab-width" value="4"/>
<rule ref="PSR2">
<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
</properties>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment