diff options
-rw-r--r-- | composer.json | 63 | ||||
-rw-r--r-- | php-cs-fixer.spec | 7 |
2 files changed, 68 insertions, 2 deletions
diff --git a/composer.json b/composer.json index 13158af..65198ee 100644 --- a/composer.json +++ b/composer.json @@ -78,5 +78,68 @@ "ergebnis/composer-normalize": true }, "sort-packages": true + }, + "scripts": { + "post-autoload-dump": [ + "@install-tools" + ], + "cs:check": "@php php-cs-fixer fix --dry-run --diff", + "cs:fix": "@php php-cs-fixer fix", + "docs": "@php dev-tools/doc.php", + "install-tools": "@composer --working-dir=dev-tools install", + "mess-detector": "@php dev-tools/vendor/bin/phpmd . ansi dev-tools/mess-detector/phpmd.xml --exclude vendor/*,dev-tools/vendor/*,dev-tools/phpstan/*,tests/Fixtures/*", + "normalize": [ + "@composer normalize --working-dir=dev-tools --dry-run ../composer.json", + "@composer normalize --working-dir=dev-tools --dry-run composer.json" + ], + "phpstan": "@php -d memory_limit=512M dev-tools/vendor/bin/phpstan analyse", + "phpstan:baseline": "@php -d memory_limit=512M dev-tools/vendor/bin/phpstan analyse --generate-baseline=./dev-tools/phpstan/baseline.php", + "qa": "@quality-assurance", + "quality-assurance": [ + "Composer\\Config::disableProcessTimeout", + "@install-tools --quiet", + "@normalize", + "@self-check", + "@mess-detector", + "@sa", + "@test" + ], + "sa": "@static-analysis", + "self-check": [ + "./dev-tools/check_file_permissions.sh", + "./dev-tools/check_trailing_spaces.sh" + ], + "static-analysis": [ + "@phpstan", + "@cs:check" + ], + "test": "@test:all", + "test:all": [ + "Composer\\Config::disableProcessTimeout", + "paraunit run --testsuite all" + ], + "test:coverage": [ + "Composer\\Config::disableProcessTimeout", + "paraunit run --testsuite coverage" + ] + }, + "scripts-descriptions": { + "cs:check": "Check coding standards", + "cs:fix": "Fix coding standards", + "docs": "Regenerate docs", + "install-tools": "Install DEV tools", + "mess-detector": "Analyse code with Mess Detector", + "normalize": "Run normalization for composer.json files", + "phpstan": "Run PHPStan analysis", + "phpstan:baseline": "Dump PHPStan baseline file - use only for updating, do not add new errors when possible", + "post-autoload-dump": "Run additional tasks after installing/updating main dependencies", + "qa": "Run QA suite", + "quality-assurance": "Run QA suite", + "sa": "Run static analysis", + "self-check": "Run set of self-checks ensuring repository's validity", + "static-analysis": "Run static analysis", + "test": "Run tests", + "test:all": "Run all tests", + "test:coverage": "Run tool-related tests" } } diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec index 13081cc..b467005 100644 --- a/php-cs-fixer.spec +++ b/php-cs-fixer.spec @@ -10,14 +10,14 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 92b019f6c8d79aa26349d0db7671d37440dc0ff3 +%global gh_commit 35af3cbbacfa91e164b252a28ec0b644f1ed4e78 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner FriendsOfPHP %global gh_project PHP-CS-Fixer Name: php-cs-fixer -Version: 3.22.0 +Version: 3.23.0 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: PHP Coding Standards Fixer @@ -154,6 +154,9 @@ PHP_CS_FIXER_IGNORE_ENV=1 ./%{name} --version | grep %{version} %changelog +* Fri Aug 18 2023 Remi Collet <remi@remirepo.net> - 3.23.0-1 +- update to 3.23.0 + * Mon Jul 17 2023 Remi Collet <remi@remirepo.net> - 3.22.0-1 - update to 3.22.0 |