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

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-04-26 17:16:06 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 19:13:01 +0300
commit4486db99239a8071ca3ac46e7b3368b70905c995 (patch)
treea187a12d8c9a1223b1a31eca6f2b8f608e5bdaff
parentd824d00eef577cad122b68d9d7df18315ea226f0 (diff)
Add composer scripts from other apps
Should fix lint-php workflow Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--composer.json11
1 files changed, 10 insertions, 1 deletions
diff --git a/composer.json b/composer.json
index 3c2f792..e52a1fa 100644
--- a/composer.json
+++ b/composer.json
@@ -11,5 +11,14 @@
"email": "jus@bitgrid.net"
}
],
- "require": {}
+ "require": {},
+ "scripts": {
+ "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",
+ "cs:fix": "php-cs-fixer fix",
+ "psalm": "psalm --threads=1",
+ "psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
+ "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
+ "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
+ }
}