Skip to content

Commit

Permalink
Fix dependencies and introduce composer normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
fsylum committed Jan 21, 2024
1 parent d345382 commit 5d7204c
Show file tree
Hide file tree
Showing 3 changed files with 640 additions and 81 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
strategy:
matrix:
actions:
-
name: 'Composer Normalize'
run: composer normalize --dry-run

-
name: 'Composer Validate'
run: composer validate
Expand Down
55 changes: 33 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
{
"name": "fsylum/rector-wordpress",
"description": "Rector upgrades rules for WordPress",
"type": "rector-extension",
"license": "MIT",
"type": "rector-extension",
"require": {
"php": ">=8.2",
"rector/rector": "^0.19.2",
"webmozart/assert": "^1.11"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.41",
"laravel/pint": "^1.13",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-webmozart-assert": "^1.2",
"phpunit/phpunit": "^10.5"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Fsylum\\RectorWordPress\\": "src/"
Expand All @@ -13,32 +29,27 @@
"Fsylum\\RectorWordPress\\Tests\\": "tests"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.2",
"rector/rector": "^0.19.2"
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
}
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"phpstan/phpstan": "^1.10",
"laravel/pint": "^1.13",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-webmozart-assert": "^1.2",
"phpstan/phpstan-strict-rules": "^1.5",
"webmozart/assert": "^1.11"
"extra": {
"composer-normalize": {
"indent-size": 4,
"indent-style": "space"
}
},
"scripts": {
"post-update-cmd": [
"@composer normalize"
],
"phpstan": "vendor/bin/phpstan analyse --ansi",
"phpunit": "vendor/bin/phpunit tests",
"pint-test": "vendor/bin/pint --test",
"pint": "vendor/bin/pint",
"rector-dry-run": "vendor/bin/rector process --dry-run --ansi",
"rector": "vendor/bin/rector process --ansi"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
}
"pint-test": "vendor/bin/pint --test",
"rector": "vendor/bin/rector process --ansi",
"rector-dry-run": "vendor/bin/rector process --dry-run --ansi"
}
}
Loading

0 comments on commit 5d7204c

Please sign in to comment.