Skip to content

Commit

Permalink
Update psalm, infection, mago, ... (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee authored Jan 31, 2025
1 parent 14ad277 commit 96a3e72
Show file tree
Hide file tree
Showing 13 changed files with 1,050 additions and 718 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ jobs:
run: |
make install -j10 -O
- name: "install mago"
run: wget -qO- https://carthage.software/mago.sh | bash -s -- --install-dir="/usr/local/bin"

- name: "formatting"
run: mago fmt --dry-run
run: ./vendor/bin/mago fmt --dry-run

- name: "linting"
run: mago lint --reporting-format=github
run: ./vendor/bin/mago lint --reporting-format=github
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

install: ## install all dependencies for a development environment
COMPOSER_IGNORE_PLATFORM_REQ=php+ composer install
composer install

coding-standard-fix: ## apply automated coding standard fixes
mago fix
mago fmt
./vendor/bin/mago fix
./vendor/bin/mago fmt

coding-standard-check: ## check coding-standard compliance
mago lint
mago fmt --dry-run
./vendor/bin/mago lint
./vendor/bin/mago fmt --dry-run

benchmarks: ## run benchmarks
./vendor/bin/phpbench run --config config/phpbench.json
Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
"require-dev": {
"phpbench/phpbench": "^1.2.15",
"phpunit/phpunit": "^9.6.18",
"vimeo/psalm": "^5.23.1",
"vimeo/psalm": "^6.0.0",
"php-standard-library/psalm-plugin": "^2.3.0",
"php-coveralls/php-coveralls": "^2.7.0",
"roave/infection-static-analysis-plugin": "^1.35.0"
"roave/infection-static-analysis-plugin": "^1.36.0",
"carthage-software/mago": "~0.7"
},
"autoload": {
"psr-4": {
Expand All @@ -44,7 +45,8 @@
},
"config": {
"allow-plugins": {
"infection/extension-installer": true
"infection/extension-installer": true,
"carthage-software/mago": true
}
},
"extra": {
Expand Down
Loading

0 comments on commit 96a3e72

Please sign in to comment.