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

github.com/nextcloud/data_request.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-14 14:24:31 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-04-14 15:18:55 +0300
commit850b0a963415cc1f123205b60176da25f694a5d4 (patch)
tree90d2c9f82b8028c262bcf1dcaf87b002646f8364 /composer.json
parent0ec4f8a55666978b50ccaa6adf8e2655821df908 (diff)
Add psalm and cleanup for php 7.4
This also replace IMessage private api usage with the equivalent public api usage. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json13
1 files changed, 10 insertions, 3 deletions
diff --git a/composer.json b/composer.json
index 9fabd99..83c347d 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,6 @@
{
"name": "nextcloud/data_request",
+ "license": "AGPL",
"config": {
"optimize-autoloader": true,
"classmap-authoritative": true,
@@ -8,12 +9,18 @@
}
},
"scripts": {
- "cs:fix": "php-cs-fixer fix",
+ "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
- "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l"
+ "cs:fix": "php-cs-fixer fix",
+ "psalm": "psalm --threads=1",
+ "psalm:update-baseline": "psalm --threads=1 --update-baseline",
+ "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
+ "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
},
"require-dev": {
+ "phpunit/phpunit": "^9.5",
"nextcloud/coding-standard": "^1.0.0",
- "phpunit/phpunit": "^9.5"
+ "christophwurst/nextcloud": "dev-master",
+ "vimeo/psalm": "^4.22.0"
}
}