Skip to content

Instantly share code, notes, and snippets.

@verschuur
Last active May 4, 2020 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save verschuur/679faea8c48d9f6a0b6219862306dbf6 to your computer and use it in GitHub Desktop.
Save verschuur/679faea8c48d9f6a0b6219862306dbf6 to your computer and use it in GitHub Desktop.
# 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