Last active
May 4, 2020 08:42
-
-
Save verschuur/679faea8c48d9f6a0b6219862306dbf6 to your computer and use it in GitHub Desktop.
This file contains 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
# Commands | |
phpcs --config-set default_standard PSR12 | |
phpcs --config-set show_progress 1 | |
phpcs --config-set colors 1 | |
phpcs --report=gitblame /path/to/code | |
phpcs -s --report=gitblame /path/to/code | |
# Handy rulesets | |
<?xml version="1.0"?> | |
<ruleset name="Testing Suites rulesets"> | |
<description>Ignore required CamelCaps</description> | |
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"> | |
<exclude-pattern>*/tests/*</exclude-pattern> | |
</rule> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment