parameters:
magento_dir: ./www/html
bin_dir: "%magento_dir%/vendor/bin"
git_dir: "."
hide_circumvention_tip: true
process_timeout: 120
stop_on_failure: false
ignore_unstaged_changes: false
tasks:
# run PHP_CodeSniffer
phpcs:
standard: "Magento2"
whitelist_patterns: ["^www/html/app/code/(.*)"]
ignore_patterns: ["^www/html/app/code/Magento/(.*)"]
tab_width: 4
metadata:
priority: 70
{
"pre-commit": {
"enabled": true,
"actions": [
{
"action": "phpunit"
},
{
"action": "phpcs --standard=psr2 src/sample"
}
]
}
}