Skip to content

Commit

Permalink
Merge pull request #164 from MITLibraries/fix-phpcs
Browse files Browse the repository at this point in the history
Upgrade PHPCS
  • Loading branch information
matt-bernhardt authored Oct 16, 2024
2 parents d29f062 + 7400942 commit cf3e777
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2']
php-version: ['8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# but in most cases, we don't want to version control anything in here.
# It's unlikely that you would need to change any of these rules.
web/app/upgrade
web/app/uploads
web/app/uploads/*
!web/app/uploads/.gitkeep
web/app/cache/*
Expand Down
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,8 @@
"wpengine/advanced-custom-fields-pro": "^5"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6.2",
"wp-coding-standards/wpcs": "^2.3"
"wp-coding-standards/wpcs": "^3.0.0"
},
"config": {
"optimize-autoloader": true,
Expand All @@ -141,9 +139,9 @@
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"pivvenit/acf-pro-installer": true,
"roots/wordpress-core-installer": true
"roots/wordpress-core-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"sort-packages": true
},
Expand Down Expand Up @@ -218,15 +216,15 @@
"security": [
"phpcs --standard=phpcs.security.xml"
],
"lint": [
"phpcs"
],
"syntax": [
"find . -path ./libs -prune -o \\( -name '*.php' \\) -exec php -lf {} \\;"
],
"install-sage": [
"bash ./private/scripts/sage-theme-install.sh"
],
"test": [
"phpcs"
],
"upstream-require": [
"WordPressComposerManaged\\ComposerScripts::upstreamRequire"
]
Expand Down
Loading

0 comments on commit cf3e777

Please sign in to comment.