Last active
July 17, 2017 12:32
-
-
Save burzum/75ad4ce602ccc9451ff0a2f5447ce29e to your computer and use it in GitHub Desktop.
Custom phpcs config for PSR2 without the god damn aweful spaces - enforce tabs!
This file contains hidden or 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"?> | |
<ruleset name="PSR2-Fuck-Spaces"> | |
<rule ref=".\vendor\cakephp\cakephp-codesniffer\CakePHP\ruleset.xml"/> | |
<file>./src</file> | |
<file>./tests</file> | |
<rule ref="PSR2"> | |
<exclude name="PSR2.Classes.ClassDeclaration"></exclude> | |
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | |
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" /> | |
</rule> | |
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | |
<rule ref="Generic.WhiteSpace.ScopeIndent"> | |
<properties> | |
<property name="indent" value="4"/> | |
<property name="tabIndent" value="true"/> | |
</properties> | |
</rule> | |
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" /> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment