Skip to content

Commit

Permalink
Merge pull request #2688 from Varying-Vagrant-Vagrants/wpcs-vipcs-3
Browse files Browse the repository at this point in the history
Bump VIPCS and WPCS to v3
  • Loading branch information
tomjn authored Oct 2, 2023
2 parents 0bbe182 + 21ef1c3 commit 399ba36
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ permalink: /docs/en-US/changelog/
### Enhancements

* Switched the default PHP to v8.0 ( #2658 )
* Experimental docker support ( #2632 )
* WP Coding standards v3 ( #2688 )
* VIP Coding standards v3 ( #2688 )

## 3.12 ( 2023 August 3rd )

Expand Down
3 changes: 3 additions & 0 deletions provision/core/phpcs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor/
bin/
composer.lock
7 changes: 4 additions & 3 deletions provision/core/phpcs/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"issues": "https://github.com/Varying-Vagrant-Vagrants/VVV/issues/"
},
"require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"automattic/vipwpcs": "^2.3.3",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"automattic/vipwpcs": "^3",
"phpcompatibility/php-compatibility": "^9.3.5",
"phpcompatibility/phpcompatibility-wp": "^2.1.4"
"phpcompatibility/phpcompatibility-wp": "^2.1.4",
"wp-coding-standards/wpcs": "^3.0.1"
},
"config": {
"allow-plugins": {
Expand Down
8 changes: 8 additions & 0 deletions provision/core/phpcs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## VVV PHPCS setup

This folder houses a composer file that installs PHPCS. If PHPCS fails, you can destroy/nuke the vendor and bin folders, as well as the lock file, and re-provision, or even run composer yourself on the host.

The goal for us in terms of packages is to enable both WordPress and VIP coding standards, with PHP compat thrown in for good measure.

Additionally, this is in a shared folder so that you can use the same PHPCS install in your VVV VM as well as your IDE/editor.

0 comments on commit 399ba36

Please sign in to comment.