Add Composer commands for tools
This commit is contained in:
parent
87aac8fded
commit
32608a6610
|
@ -1,6 +1,7 @@
|
||||||
/.phpdoc/cache/
|
/.phpdoc/cache/
|
||||||
/.vscode/
|
/.vscode/
|
||||||
/vendor/
|
/vendor/
|
||||||
|
.php-cs-fixer.cache
|
||||||
.php-cs-fixer.php
|
.php-cs-fixer.php
|
||||||
composer.lock
|
composer.lock
|
||||||
phpcs.xml
|
phpcs.xml
|
||||||
|
|
|
@ -31,16 +31,17 @@
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"guzzlehttp/psr7": "^2.6",
|
"guzzlehttp/psr7": "^2.6",
|
||||||
"opencultureconsulting/basics": "^2.0",
|
"opencultureconsulting/basics": "^2.1",
|
||||||
"psr/http-server-handler": "^1.0",
|
"psr/http-server-handler": "^1.0",
|
||||||
"psr/http-server-middleware": "^1.0"
|
"psr/http-server-middleware": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpstan/phpstan": "^1.10",
|
"phpdocumentor/shim": "^3.5",
|
||||||
"phpstan/phpstan-strict-rules": "^1.5",
|
"phpstan/phpstan": "^1.11",
|
||||||
"friendsofphp/php-cs-fixer": "^3.52",
|
"phpstan/phpstan-strict-rules": "^1.6",
|
||||||
"squizlabs/php_codesniffer": "^3.9",
|
"friendsofphp/php-cs-fixer": "^3.59",
|
||||||
"vimeo/psalm": "^5.23"
|
"squizlabs/php_codesniffer": "^3.10",
|
||||||
|
"vimeo/psalm": "^5.25"
|
||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"psr/http-server-handler-implementation": "1.0",
|
"psr/http-server-handler-implementation": "1.0",
|
||||||
|
@ -50,5 +51,38 @@
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"OCC\\PSR15\\": "src/"
|
"OCC\\PSR15\\": "src/"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"allow-plugins": {
|
||||||
|
"phpdocumentor/shim": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"php-cs-fixer:check": [
|
||||||
|
"@php vendor/bin/php-cs-fixer check"
|
||||||
|
],
|
||||||
|
"php-cs-fixer:fix": [
|
||||||
|
"@php vendor/bin/php-cs-fixer fix"
|
||||||
|
],
|
||||||
|
"phpcs:check": [
|
||||||
|
"@php vendor/bin/phpcs"
|
||||||
|
],
|
||||||
|
"phpdoc:build": [
|
||||||
|
"@php vendor/bin/phpdoc"
|
||||||
|
],
|
||||||
|
"phpstan:check": [
|
||||||
|
"@php vendor/bin/phpstan"
|
||||||
|
],
|
||||||
|
"psalm:check": [
|
||||||
|
"@php vendor/bin/psalm"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scripts-descriptions": {
|
||||||
|
"php-cs-fixer:check": "Runs a code check with PHP Coding Standards Fixer and reports problems. If a custom configuration file '.php-cs-fixer.php' exists, it will be used instead of the default settings in '.php-cs-fixer.dist.php'.",
|
||||||
|
"php-cs-fixer:fix": "Runs a code check with PHP Coding Standards Fixer and tries to fix all issues. If a custom configuration file '.php-cs-fixer.php' exists, it will be used instead of the default settings in '.php-cs-fixer.dist.php'.",
|
||||||
|
"phpcs:check": "Runs a code check with PHP_CodeSniffer and reports problems. If a custom configuration file '.phpcs.xml' exists, it will be used instead of the default settings in '.phpcs.xml.dist'.",
|
||||||
|
"phpdoc:build": "Builds the documentation from source files in ./src and additional templates in .phpdoc/. If a custom configuration file 'phpdoc.xml' exists, it will be used instead of the default settings in 'phpdoc.dist.xml'.",
|
||||||
|
"phpstan:check": "Runs a code check with PHPStan static code analyzer and reports problems. If a custom configuration file 'phpstan.neon' exists, it will be used instead of the default settings in 'phpstan.dist.neon'.",
|
||||||
|
"psalm:check": "Runs a code check with Psalm static code analyzer and reports problems. If a custom configuration file 'psalm.xml' exists, it will be used instead of the default settings in 'psalm.xml.dist'."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
errorLevel="1"
|
errorLevel="1"
|
||||||
resolveFromConfigFile="true"
|
resolveFromConfigFile="true"
|
||||||
findUnusedBaselineEntry="true"
|
findUnusedBaselineEntry="true"
|
||||||
findUnusedCode="true"
|
findUnusedCode="false"
|
||||||
findUnusedVariablesAndParams="true"
|
findUnusedVariablesAndParams="true"
|
||||||
>
|
>
|
||||||
<issueHandlers>
|
<issueHandlers>
|
||||||
|
|
Loading…
Reference in New Issue