Last active
March 18, 2019 14:47
-
-
Save gwarnants/a388b6886e8a4c8f21a3 to your computer and use it in GitHub Desktop.
Auto-configure PHP_CodeSniffer settings directly from composer.json
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
{ | |
"require-dev": { | |
"squizlabs/php_codesniffer": "2.*" | |
}, | |
"scripts": { | |
"phpcs-setup": [ | |
"\"vendor/bin/phpcs\" --config-set default_standard ruleset.xml", | |
"\"vendor/bin/phpcs\" --config-set colors 1", | |
"\"vendor/bin/phpcs\" --config-set show_progress 1", | |
"\"vendor/bin/phpcs\" --config-set report_width 120", | |
"\"vendor/bin/phpcs\" --config-set encoding utf-8" | |
], | |
"post-install-cmd": [ | |
"@phpcs-setup" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment