Skip to content

Commit

Permalink
SG-209 CS fixer check update
Browse files Browse the repository at this point in the history
  • Loading branch information
augsteyer committed Feb 24, 2024
1 parent 317070d commit 1cd99e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: actions/checkout@v3
- name: Code Style
run: |
curl -L https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.16.0/php-cs-fixer.phar -o php-cs-fixer
curl -L https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.50.0/php-cs-fixer.phar -o php-cs-fixer
chmod a+x php-cs-fixer
./php-cs-fixer fix --config=.php-cs-fixer.dist.php --cache-file=.php-cs-fixer.cache --diff --dry-run --verbose
Expand Down
19 changes: 10 additions & 9 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

// For more information visit the Github repository: https://github.com/FriendsOfPHP/PHP-CS-Fixer
// For more information visit the GitHub repository: https://github.com/FriendsOfPHP/PHP-CS-Fixer

// How to set up PHP-CS-Fixer in PHPStorm:
// https://hackernoon.com/how-to-configure-phpstorm-to-use-php-cs-fixer-1844991e521f
Expand All @@ -14,16 +14,17 @@
'blank_line_after_opening_tag' => true,
'method_argument_space' => false,
);
$finder = Finder::create()
->exclude('vendor')
->exclude('vendors')
->exclude('release')
->in(__DIR__);
$finder = (new Finder())
->in(__DIR__)
->exclude('tests/node_modules')
->exclude('vendor')
->exclude('vendors')
->exclude('release');

$config = new Config();
$config->setRiskyAllowed(true)
->setUsingCache(true)
->setRules($fixers)
->setFinder($finder);
->setUsingCache(true)
->setRules($fixers)
->setFinder($finder);

return $config;

0 comments on commit 1cd99e6

Please sign in to comment.