-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update php-cs-fixer version and use it in CI (#14)
* ci(codestyle): update php-cs-fixer * fix: add composer.lock for having more stable CI * ci: use php 8.3 in CI * tests: fix tests with php-cs-fixer * docs: update contributing instructions
- Loading branch information
Showing
13 changed files
with
3,662 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
.idea | ||
.DS_Store | ||
.phpunit.result.cache | ||
composer.lock | ||
composer.phar | ||
vendor | ||
coverage.xml | ||
.php_cs.cache | ||
.phpunit.cache | ||
.php-cs-fixer.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
<?php | ||
|
||
return \PhpCsFixer\Config::create() | ||
use PhpCsFixer\Config; | ||
|
||
return (new Config()) | ||
->setRiskyAllowed(true) | ||
->setFinder( | ||
\PhpCsFixer\Finder::create() | ||
PhpCsFixer\Finder::create() | ||
->in(__DIR__ . '/src') | ||
->in(__DIR__ . '/tests') | ||
) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' => true, | ||
'@PHP71Migration' => true, | ||
'@PHP71Migration:risky' => true, | ||
'@DoctrineAnnotation' => true, | ||
'@PHPUnit60Migration:risky' => true, | ||
'native_function_invocation' => true, | ||
'header_comment' => ['header' => ''], | ||
'method_chaining_indentation' => false, | ||
'php_unit_test_class_requires_covers' => false, | ||
]) | ||
; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
test-unit: | ||
./vendor/bin/phpunit | ||
php -d xdebug.mode=coverage ./vendor/bin/phpunit | ||
|
||
php-cs-fixer: | ||
./vendor/bin/php-cs-fixer fix --show-progress dots --dry-run --config .php_cs.php | ||
./vendor/bin/php-cs-fixer fix --verbose --dry-run --show-progress none --config .php_cs.php | ||
|
||
php-cs-fixer-fix: | ||
./vendor/bin/php-cs-fixer fix --show-progress dots --config .php_cs.php | ||
./vendor/bin/php-cs-fixer fix --verbose --show-progress none --config .php_cs.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.