Skip to content

Commit

Permalink
Merge pull request #2692 from Varying-Vagrant-Vagrants/modify/phpcsst…
Browse files Browse the repository at this point in the history
…andards

Replace squiz repo reference with the new phpcs standards repo
  • Loading branch information
tomjn authored Dec 4, 2023
2 parents 1d47578 + 80c89f7 commit 92263f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permalink: /docs/en-US/changelog/
* VIP Coding standards v3 ( #2688 )
* Better error messages with links to docs when trying to use a PHP version that isn't installed ( #2689 )
* Opted out of Dotnet package telemetry ( #2689 )
* Replace references to the Squizlab PHPCS with that from the PHPCS Standards org ( #2692 )

### Bug Fixes

Expand Down
3 changes: 2 additions & 1 deletion provision/core/phpcs/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function php_codesniff_setup() {

# PHP_CodeSniffer (for running WordPress-Coding-Standards)
# Sniffs WordPress Coding Standards
vvv_info " * [PHPCS]: Provisioning PHP_CodeSniffer (phpcs), see https://github.com/squizlabs/PHP_CodeSniffer"
vvv_info " * [PHPCS]: Provisioning PHP_CodeSniffer (phpcs), see https://github.com/PHPCSStandards/PHP_CodeSniffer"

noroot mkdir -p /srv/www/phpcs
noroot cp -f "/srv/provision/core/phpcs/composer.json" "/srv/www/phpcs/composer.json"
Expand All @@ -28,6 +28,7 @@ function php_codesniff_setup() {
noroot /srv/www/phpcs/bin/phpcs --config-set default_standard WordPress-Core
local standards=$(noroot /srv/www/phpcs/bin/phpcs -i)
vvv_success " * [PHPCS]: Completed with the following PHPCS standards set up: ${standards}"
vvv_info " * [PHPCS]: Help maintain PHPCS by sponsoring via Github Sponsors at https://github.com/sponsors/phpcsstandards or OpenCollective at https://opencollective.com/php_codesniffer"
}
export -f php_codesniff_setup

Expand Down

0 comments on commit 92263f5

Please sign in to comment.