Skip to content

Commit f583628

Browse files
chore: implement WPGraphQL Coding Standards (#769)
* chore: avoid magic constants [PHPCS] * chore: change ruleset to wp-graphql-cs and lint * devops: HPOS added back to CI with the release of WC 3.9 --------- Co-authored-by: Geoff Taylor <[email protected]>
1 parent 23b744e commit f583628

File tree

127 files changed

+984
-754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+984
-754
lines changed

.github/workflows/continous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
wordpress: '6.1'
3535
debug: '--debug'
3636
- wordpress: '6.2'
37-
hpos: 0
37+
hpos: 1
3838

3939
fail-fast: false
4040
name: Running Automated Tests w/ WPBrowser in WordPress v${{ matrix.wordpress }} on PHP${{ matrix.php }} ${{ matrix.hpos == 1 && 'with HPOS activated ' || '' }}${{ matrix.coverage == '--coverage --coverage-xml' && 'with Codecoverage ' || '' }}${{ matrix.debug == '--debug' && 'in Debug Mode ' || '' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
phpcs.xml
33
phpunit.xml
4+
phpstan.neon
45
Thumbs.db
56
wp-cli.local.yml
67
node_modules/

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@
2525
"firebase/php-jwt": "^6.1.0"
2626
},
2727
"require-dev": {
28-
"automattic/vipwpcs": "^2.3",
28+
"axepress/wp-graphql-cs": "^1.0.0-beta",
2929
"axepress/wp-graphql-stubs": "1.14.0",
3030
"php-stubs/woocommerce-stubs": "7.5.0",
3131
"phpstan/extension-installer": "^1.3",
3232
"phpstan/phpstan": "^1.10",
33-
"squizlabs/php_codesniffer": "^3.5",
34-
"szepeviktor/phpstan-wordpress": "^1.3",
35-
"wp-coding-standards/wpcs": "^2.3"
33+
"szepeviktor/phpstan-wordpress": "^1.3"
3634
},
3735
"config": {
3836
"platform": {

0 commit comments

Comments
 (0)