Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update plugin headers and rename phpstan config file #123

Merged
merged 10 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ package.json
phpcompat.xml.dist
phpcs.xml.dist
phpmd.xml.dist
phpstan.neon
phpstan.neon.dist
README.md
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
/phpcompat.xml.dist export-ignore
/phpcs.xml.dist export-ignore
/phpmd.xml.dist export-ignore
/phpstan.neon export-ignore
/phpstan.neon.dist export-ignore
/README.md export-ignore
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
# These files configure Composer. Changes could affect the outcome.
- 'composer.*'
# This file configures PHPStan. Changes could affect the outcome.
- 'phpstan.neon'
- 'phpstan.neon.dist'
# Changes to workflow files should always verify all workflows are successful.
- '.github/workflows/*.yml'
# Allows you to run this workflow manually from the Actions tab.
Expand Down Expand Up @@ -66,4 +66,4 @@ jobs:
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH

- name: Run PHPStan static analysis (PHP ${{ matrix.php-versions }})
run: phpstan analyse -c phpstan.neon --error-format=checkstyle --memory-limit=1G | cs2pr
run: phpstan analyse -c phpstan.neon.dist --error-format=checkstyle --memory-limit=1G | cs2pr
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ Sure! You are welcome to report any issues or add feature suggestions on the [Gi

## Changelog

### Unreleased

* Require WP 5.1.
* Tested with WordPress 6.6.
* Tested with GlotPress 4.0.1.
* Tested with PHP 8.3.
* Removed Git Updater forbiden plugin header.
* Fix docblock type param.
* Update dependencies.

### 1.0.2

* Tested with WordPress 6.5.
Expand Down
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"ergebnis/composer-normalize": "^2.42.0",
"ergebnis/composer-normalize": "^2.44.0",
"johnbillion/wp-compat": "^0.2.3",
"pedro-mendonca/glotpress-stubs": "4.0.1",
"phpcompatibility/phpcompatibility-wp": "^2.1.4",
"phpcompatibility/phpcompatibility-wp": "^2.1.5",
"phpmd/phpmd": "^2.15.0",
"sirbrillig/phpcs-variable-analysis": "^2.11.17",
"szepeviktor/phpstan-wordpress": "^1.3.4",
"wp-coding-standards/wpcs": "^3.0.1"
"sirbrillig/phpcs-variable-analysis": "^2.11.19",
"szepeviktor/phpstan-wordpress": "^1.3.5",
"phpstan/extension-installer": "^1.4.3",
"wp-coding-standards/wpcs": "^3.1.0"
},
"archive": {
"exclude": [
Expand All @@ -37,7 +39,8 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"optimize-autoloader": true
},
Expand All @@ -54,7 +57,7 @@
"lint:md:docs": "npm run lint:md:docs",
"lint:php": "phpcs -v --standard=phpcs.xml.dist",
"lint:phpmd": "phpmd . text phpmd.xml.dist",
"lint:phpstan": "phpstan analyse -c phpstan.neon --memory-limit=1G",
"lint:phpstan": "phpstan analyse -c phpstan.neon.dist --memory-limit=1G",
"lint:pkg-json": "npm run lint:pkg-json",
"phpcs-i": "phpcs -i",
"scripts-list": "composer run-script --list",
Expand Down
Loading