Skip to content

Commit

Permalink
add php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B authored and cedric-anne committed Aug 19, 2024
1 parent 52a1d7d commit e67c96d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ jobs:
else
echo -e "\033[0;33mPHP CodeSniffer execution skipped.\033[0m"
fi
- name: "PHP-CS-Fixer"
run: |
if [[ -f "vendor/bin/php-cs-fixer" && -f ".php-cs-fixer.php" ]]; then
echo -e "\033[0;33mExecuting PHP-CS-Fixer...\033[0m"
vendor/bin/php-cs-fixer check --config=.php-cs-fixer.php --no-interaction --show-progress none
else
echo -e "\033[0;33mPHP-CS-Fixer execution skipped.\033[0m"
fi
- name: "PHPStan"
run: |
if [[ -f "vendor/bin/phpstan" && -f "phpstan.neon" ]]; then
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This workflow will execute the following actions as long as they are available o
| -------- | -------- | -------- |
| PHP Parallel Lint | [php-parallel-lint/php-parallel-lint](https://packagist.org/packages/php-parallel-lint/php-parallel-lint) | |
| PHP CodeSniffer | [squizlabs/php_codesniffer](https://packagist.org/packages/squizlabs/php_codesniffer) | `.phpcs.xml` |
| PHP-CS-Fixer | [friendsofphp/php-cs-fixer](https://packagist.org/packages/friendsofphp/php-cs-fixer) | `.php-cs-fixer.php` |
| PHPStan | [phpstan/phpstan](https://packagist.org/packages/phpstan/phpstan) | `phpstan.neon` |
| ESLint | [eslint](https://www.npmjs.com/package/eslint) | `.eslintrc.js` |
| Stylelint | [stylelint](https://www.npmjs.com/package/stylelint) | `.stylelintrc.js` |
Expand Down

0 comments on commit e67c96d

Please sign in to comment.