chore: update the doc and improve phpstan annotations

This commit is contained in:
Younes ENNAJI
2024-05-05 17:52:48 +01:00
parent eafa471fde
commit d2f019fb62
135 changed files with 3329 additions and 1423 deletions
+19 -3
View File
@@ -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