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

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-10 11:09:25 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-10 11:09:25 +0300
commit3b42325d5da4aa03dd6af851c4c4f0e78944adc4 (patch)
tree8bbaad34b029807550034fcac1504aeded5e027c /composer.json
parent50605c1d2994d72ce7394c39caa12cf15b9c4b07 (diff)
Add PHP CS checker
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json14
1 files changed, 10 insertions, 4 deletions
diff --git a/composer.json b/composer.json
index c1b7598..3914993 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,12 @@
{
- "require-dev": {
- "phpunit/phpunit": "^8.0",
- "christophwurst/nextcloud_testing": "0.10.0"
- }
+ "scripts": {
+ "cs:check": "php-cs-fixer fix --dry-run --diff",
+ "cs:fix": "php-cs-fixer fix",
+ "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8.0",
+ "christophwurst/nextcloud_testing": "0.10.0",
+ "nextcloud/coding-standard": "^0.3.0"
+ }
}