aboutsummaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-27 16:54:07 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-31 13:45:10 +0200
commit3eac89d44861690e4ac893707fa11a31b9f42115 (patch)
treeb41c928b7777adfba75d07c7063e5410828af9d9 /composer.json
parent5a0856c4ab29386f6be01dfac8c860467cee4fb0 (diff)
downloadnextcloud-server-3eac89d44861690e4ac893707fa11a31b9f42115.tar.gz
nextcloud-server-3eac89d44861690e4ac893707fa11a31b9f42115.zip
Add shared php-cs config
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json11
1 files changed, 7 insertions, 4 deletions
diff --git a/composer.json b/composer.json
index 5f3db01b32c..ea99a098557 100644
--- a/composer.json
+++ b/composer.json
@@ -15,9 +15,12 @@
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "^0.9.2",
- "jakub-onderka/php-console-highlighter": "^0.3.2"
+ "jakub-onderka/php-console-highlighter": "^0.3.2",
+ "nextcloud/coding-standard": "^0.1.0"
},
- "scripts": {
- "lint": "find . -name \\*.php -not -path './lib/composer/*' -exec php -l \"{}\" \\;"
- }
+ "scripts": {
+ "cs:fix": "php-cs-fixer fix",
+ "cs:check": "php-cs-fixer fix --dry-run",
+ "lint": "find . -name \\*.php -not -path './lib/composer/*' -exec php -l \"{}\" \\;"
+ }
}