Skip to content

Commit

Permalink
update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Oct 19, 2023
1 parent 58edb3c commit bea9c3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
22 changes: 15 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@
"sort-packages": true
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true,
"target-directory": "vendor-bin"
},
"branch-alias": {
"dev-main": "1.x-dev"
},
Expand All @@ -154,8 +159,8 @@
],
"ai-commit": "/usr/local/opt/[email protected]/bin/php ./vendor/bin/ai-commit commit --generator=bito_cli --ansi",
"ai-commit-no-verify": "@ai-commit --commit-options=--no-verify",
"benchmark": "@php ./vendor/bin/phpbench run --warmup=1 --retry-threshold=1 --iterations=3 --revs=5",
"cghooks": "@php ./vendor/bin/cghooks",
"benchmark": "@php ./vendor/bin/phpbench run --warmup=1 --retry-threshold=1 --iterations=3 --revs=5 --ansi -v",
"cghooks": "@php ./vendor/bin/cghooks --ansi -v",
"checks": [
"@composer-normalize",
"@composer-validate",
Expand All @@ -170,6 +175,7 @@
"composer-normalize": "@composer normalize --dry-run --diff --ansi -v",
"composer-unused": "@php ./vendor/bin/composer-unused --ansi -v",
"composer-validate": "@composer validate --check-lock --strict --ansi -v",
"json-lint": "@php ./vendor/bin/jsonlint *.json .*rc",
"lint": [
"for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done",
"for DIR in ./src ./tests; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done"
Expand All @@ -179,12 +185,13 @@
"mark-start": "printf '\\n!\\n!\\t\\033[0;36m%s\\033[0m\\n!\\n\\n' \"Started\"",
"md-fix": "@md-lint --fix",
"md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/",
"pest": "@php ./vendor/bin/pest --cache-result-file=./build//phpunit/.phpunit.result.cache",
"pest": "@php ./vendor/bin/pest",
"pest-coverage": "@pest --coverage-html=./build/phpunit/ --coverage-clover=clover.xml --coverage",
"phpstan": "@php ./vendor/bin/phpstan analyse -vv",
"pest-migrate-configuration": "@pest --migrate-configuration",
"phpstan": "@php ./vendor/bin/phpstan analyse --ansi -v",
"phpstan-baseline": "@phpstan --generate-baseline --allow-empty-baseline",
"post-merge": [
"composer install"
"composer install --ansi -v"
],
"psalm": "@php ./vendor/bin/psalm",
"psalm-baseline": "@psalm --update-baseline",
Expand All @@ -197,10 +204,11 @@
"release-minor-dry-run": "@release-minor --dry-run",
"release-patch": "@release patch",
"release-patch-dry-run": "@release-patch --dry-run",
"style-fix": "@php ./vendor/bin/php-cs-fixer fix --using-cache=yes --config=.php-cs-fixer.php --ansi",
"style-fix": "@php ./vendor/bin/php-cs-fixer fix --using-cache=yes --config=.php-cs-fixer.php --ansi -v",
"style-lint": "@style-fix --diff --dry-run",
"test": "@php ./vendor/bin/phpunit --coverage-text -v",
"test-coverage": "@test --coverage-html=./build/phpunit/ --coverage-clover=clover.xml",
"test-migrate-configuration": "@test --migrate-configuration"
"test-migrate-configuration": "@test --migrate-configuration",
"yaml-lint": "@php ./vendor/bin/yaml-lint .github --ansi -v"
}
}
3 changes: 0 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector;
use Rector\CodingStyle\Rector\Class_\AddArrayDefaultToArrayPropertyRector;
use Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector;
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
Expand Down Expand Up @@ -82,12 +81,10 @@

// optional rules
// RemoveUnusedVariableAssignRector::class,
// UnSpreadOperatorRector::class,
// StaticClosureRector::class,
AddArrayDefaultToArrayPropertyRector::class,
RemoveEmptyClassMethodRector::class,
ExplicitBoolCompareRector::class,
UnSpreadOperatorRector::class,
AddSeeTestAnnotationRector::class,

// paths
Expand Down

0 comments on commit bea9c3a

Please sign in to comment.