Skip to content

Commit

Permalink
Split code style check into check and fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswolf committed Apr 8, 2024
1 parent 6a414be commit a8a0db6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint_test_pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
composer-command:
- name: PHP Code Style
command: 'style:php'
command: 'style:php:check'
- name: Composer normalize
command: 'normalize --dry-run'
- name: PHPStan
Expand Down
3 changes: 2 additions & 1 deletion extension-installer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
"scripts": {
"analyze:php": "phpstan analyze",
"style:php": "ecs"
"style:php:check": "ecs",
"style:php:fix": "ecs --fix"
}
}
3 changes: 2 additions & 1 deletion fractor-xml/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
},
"scripts": {
"analyze:php": "phpstan analyze",
"style:php": "ecs",
"style:php:check": "ecs",
"style:php:fix": "ecs --fix",
"test:php": "phpunit tests/"
}
}
3 changes: 2 additions & 1 deletion fractor/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
},
"scripts": {
"analyze:php": "phpstan analyze",
"style:php": "ecs --fix",
"style:php:check": "ecs",
"style:php:fix": "ecs --fix",
"test:php": "phpunit tests/"
}
}
3 changes: 2 additions & 1 deletion typo3-fractor/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
},
"scripts": {
"analyze:php": "phpstan analyze",
"style:php": "ecs",
"style:php:check": "ecs",
"style:php:fix": "ecs --fix",
"test:php": "phpunit tests/"
}
}

0 comments on commit a8a0db6

Please sign in to comment.