Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active September 15, 2017 05:53
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 tommcfarlin/ab0cd032408fdc5cc30c035d77ea49ba to your computer and use it in GitHub Desktop.
Save tommcfarlin/ab0cd032408fdc5cc30c035d77ea49ba to your computer and use it in GitHub Desktop.
[WordPress] Configuring Composer for WordPress, Part 2
parameters:
git_dir: .
bin_dir: vendor/bin
tasks:
parameters:
git_dir: .
bin_dir: vendor/bin
tasks:
securitychecker:
composer:
jsonlint:
xmllint:
yamllint:
phpstan:
phplint:
phpunit:
phpcs:
phpcpd:
phpmnd:
phpparser:
visitors:
no_exit_statements: ~
never_use_else: ~
forbidden_function_calls:
blacklist:
- "die"
- "var_dump"
- "exit"
phpversion:
project: '7.0'
phpmd:
ruleset: ['phpmd.xml.dist']
@veewee
Copy link

veewee commented Sep 15, 2017

FYI: both "die" and "exit" are exit statements in phpparser and won't be noticed by the forbidden_function_calls blacklist visitor but by the no_exit_statements visitor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment