Fixing codestandards.

This commit is contained in:
2023-08-01 13:35:44 +00:00
parent 7792552c9f
commit da8125be94
11 changed files with 153 additions and 57 deletions

View File

@ -9,7 +9,8 @@
"phpunit/phpunit": "^10",
"rector/rector": "^0.17",
"phpstan/phpstan": "^1",
"laravel/pint": "^1"
"laravel/pint": "^1",
"squizlabs/php_codesniffer": "*"
},
"autoload": {
"psr-4": {
@ -20,5 +21,15 @@
"psr-4": {
"DNW\\Skills\\Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit tests --display-warnings",
"test-coverage": "vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --path-coverage --testdox-html output/test.html --log-junit output/test.xml ",
"analyze": [
"@analyze-phpstan",
"@analyze-phpcs"
],
"analyze-phpstan":"vendor/bin/phpstan analyze --level=8 --error-format=raw src/",
"analyze-phpcs": "vendor/bin/phpcs src --report=emacs --standard=PSR12"
}
}