mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
chore: update the doc and improve phpstan annotations
This commit is contained in:
+19
-3
@@ -13,7 +13,8 @@ tasks:
|
||||
desc: "🔄 Update project dependencies to the lowest possible versions within the specified version constraints, ensuring compatibility."
|
||||
cmds:
|
||||
- composer update --prefer-lowest -W
|
||||
- npm run ncu && npm install --force
|
||||
- npm run ncu
|
||||
- npm install --force
|
||||
aliases:
|
||||
- u
|
||||
- up
|
||||
@@ -26,17 +27,25 @@ tasks:
|
||||
- req
|
||||
|
||||
lint:
|
||||
desc: "🔍 Run various linting tools to ensure code quality, including PHP-CS-Fixer, PHPStan, Composer validation, and PHPLint."
|
||||
desc: "🔍 Run various linting tools to ensure code quality."
|
||||
cmds:
|
||||
- vendor/bin/php-cs-fixer fix
|
||||
- vendor/bin/php-cs-fixer fix --dry-run
|
||||
- vendor/bin/phpstan analyse
|
||||
- composer validate --strict
|
||||
- vendor/bin/phplint
|
||||
- find src/ -name "composer.json" -exec composer validate --strict {} \;
|
||||
aliases:
|
||||
- pint
|
||||
- check
|
||||
- validate
|
||||
|
||||
fix:
|
||||
desc: "🛠️ Automatically fix coding standards issues."
|
||||
cmds:
|
||||
- vendor/bin/php-cs-fixer fix
|
||||
aliases:
|
||||
- lintf
|
||||
|
||||
test:
|
||||
desc: "✅ Run PHPUnit tests to verify the correctness of the codebase."
|
||||
cmds:
|
||||
@@ -45,3 +54,10 @@ tasks:
|
||||
- tests
|
||||
- phpunit
|
||||
- unit
|
||||
|
||||
security:
|
||||
desc: "🔐 Check for security vulnerabilities in the project dependencies."
|
||||
cmds:
|
||||
- symfony security:check
|
||||
aliases:
|
||||
- seccheck
|
||||
|
||||
Reference in New Issue
Block a user