Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2021-05-16 21:33:27 +0300
committersualko <klaus@jsxc.org>2021-05-28 18:35:54 +0300
commit87f9d21e59e46ac7aa97720b47f19622d748b2b8 (patch)
treee40b4ae2fff47ee274db267894a0ab5ca1041903 /composer.json
parentdb9ccf7bd342cca4f3fabd96b4a56639c6a1da00 (diff)
chore: add psalm
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/composer.json b/composer.json
index 108c50c..543e412 100644
--- a/composer.json
+++ b/composer.json
@@ -5,12 +5,18 @@
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.3",
- "friendsofphp/php-cs-fixer": "^2.14"
+ "friendsofphp/php-cs-fixer": "^2.14",
+ "christophwurst/nextcloud": "dev-stable20 || dev-stable21",
+ "vimeo/psalm": "^4.5"
},
"scripts": {
"test": "phpunit --configuration phpunit.xml",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
- "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;"
+ "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;",
+ "psalm": "psalm --threads=1",
+ "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
+ "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
+ "psalm:update": "psalm --set-baseline=tests/psalm-baseline.xml && psalm --update-baseline"
}
}