Skip to content

Commit

Permalink
♾️ ITR - master: actually set phpcs config rules
Browse files Browse the repository at this point in the history
  • Loading branch information
brandoncamenisch committed Jan 10, 2020
1 parent ae51ab4 commit 540f668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vvv/build-me-vvv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=999999'
if [ ! -d "www/phpcs/CodeSniffer/Standards/pmc-codesniffer" ]; then git clone https://bitbucket.org/penskemediacorp/pmc-codesniffer.git www/phpcs/CodeSniffer/Standards/pmc-codesniffer; fi
# Takes the current standard defined in provisioner here: https://github.com/Varying-Vagrant-Vagrants/VVV/blob/develop/provision/provision.sh#L852 and adds pmc standards
vagrant ssh -- -t "phpcs --config-show | grep installed_paths | sed 's/\://g'|sed 's/.*/\0,.\/CodeSniffer\/Standards\/pmc-codesniffer\/PmcWpVip\/,.\/CodeSniffer\/Standards\/pmc-codesniffer\/PmcLaravel\//'"
vagrant ssh -- -t "phpcs --config-show | grep installed_paths | sed 's/\://g'|sed 's/.*/\0,.\/CodeSniffer\/Standards\/pmc-codesniffer\/PmcWpVip\/,.\/CodeSniffer\/Standards\/pmc-codesniffer\/PmcLaravel\//' | xargs phpcs --config-set"
# This standard is overwritable obviously at the project level
vagrant ssh -- -t "phpcs --config-set default_standard PmcWpVip" # PmcWpVip rules inherit WP VIP standard see the repo for more information or to add a new rule by submitting a PR

Expand Down

0 comments on commit 540f668

Please sign in to comment.