Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active September 15, 2017 05:53
Embed
What would you like to do?
[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