Skip to content

Commit

Permalink
Added Psalm and Laminas coding standard tools (again)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Richer [email protected] <[email protected]>
  • Loading branch information
visto9259 committed Aug 16, 2024
1 parent da023d3 commit 707cd2f
Show file tree
Hide file tree
Showing 6 changed files with 5,383 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
vendor
composer.lock
.idea
.php_cs.cache
.phpcs*
build
.phpunit.result.cache
/.phpunit.cache
28 changes: 16 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"doctrine/persistence": "^2.0 || ^3.0"
},
"require-dev": {
"malukenho/docheader": "^1.0.0",
"laminas/laminas-coding-standard": "^2.5.0",
"phpunit/phpunit": "^10.0 || ^11.0",
"phpspec/prophecy": "^1.10",
"phpspec/prophecy-phpunit": "^2.0",
"friendsofphp/php-cs-fixer": "^3.43",
"php-coveralls/php-coveralls": "^2.0",
"doctrine/orm": "^2.13 || ^3.0",
"symfony/cache": "^4.0 || ^5.0 || ^6.0"
"symfony/cache": "^4.0 || ^5.0 || ^6.0",
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.25"
},
"autoload": {
"psr-4": {
Expand All @@ -75,15 +75,19 @@
},
"scripts": {
"check": [
"@cs",
"@test",
"@header"
"@cs-check",
"@test"
],
"cs": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff",
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"header": "docheader check src test",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"test-coverage-html": "phpunit --colors=always --coverage-html ./build/html"
"test-coverage": "phpunit --coverage-clover ./build/logs/clover.xml",
"test-coverage-html": "phpunit --colors=always --coverage-html ./build/html",
"static-analysis": "psalm --shepherd --stats"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit 707cd2f

Please sign in to comment.