Skip to content

Instantly share code, notes, and snippets.

@slava-konashkov
Forked from gsherwood/ruleset.xml
Created December 18, 2019 10:31
Show Gist options
  • Save slava-konashkov/0cfdb7172939ddda47029c5cadd8eb5e to your computer and use it in GitHub Desktop.
Save slava-konashkov/0cfdb7172939ddda47029c5cadd8eb5e to your computer and use it in GitHub Desktop.
PSR2 with tabs instead of spaces
<?xml version="1.0"?>
<ruleset name="MyStandard">
<description>PSR2 with tabs instead of spaces.</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