Skip to content

Commit

Permalink
add scripts to run dev-tools for QA
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Aug 20, 2024
1 parent b9b677c commit d9c4c20
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@
],
"post-install-cmd": [
"@composer bin all install --ansi"
]
],
"code:check": "vendor/bin/phpstan analyse --configuration .github/linters/phpstan.neon.dist --ansi",
"code:lint": "vendor/bin/phplint --configuration .github/linters/.phplint.yml --verbose --progress=indicator --ansi",
"style:check": "vendor/bin/phpcs --standard=.github/linters/.phpcs.xml.dist --warning-severity=0 --colors",
"tests:unit": "vendor/bin/phpunit --configuration phpunit.xml.dist"
},
"scripts-descriptions" : {
"code:check": "Run PHPStan code analysis on project source code",
"code:lint": "Run PHPLint on project source code",
"style:check": "Run PHP CodeSniffer on project source code",
"tests:unit": "Run PHPUnit (unit tests) on project source code"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phpcs/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"squizlabs/php_codesniffer": "^3.3"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phplint/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"overtrue/phplint": "^9.4"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"phpstan/phpstan": "^1.11"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phpunit/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"phpunit/phpunit": "^10.5"
}
}

0 comments on commit d9c4c20

Please sign in to comment.