diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2020-04-10 14:18:30 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2020-04-10 14:45:54 +0300 |
commit | e8213d582c76f0dc721d4e4b0b60d402c5c67212 (patch) | |
tree | cb0fa8aedce71069b4117555297cec6f7e1c4a34 /composer.json | |
parent | 80a3133cf5a3ce4ecc26f67934a057653843cf49 (diff) |
Add php-cs-fixer configuration
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/composer.json b/composer.json index d82c17dc..e318c2e0 100644 --- a/composer.json +++ b/composer.json @@ -1,23 +1,26 @@ { - "name": "nextcloud/tasks", - "description": "Nextcloud Tasks", - "type": "project", - "license": "AGPL", - "authors": [ - { - "name": "Bernhard Posselt", - "email": "dev@bernhard-posselt.com" - } - ], - "require": {}, - "require-dev": { - "phpunit/phpunit": "^7.5" - }, - "config": { - "optimize-autoloader": true, - "classmap-authoritative": true - }, - "scripts": { - "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" - } + "name": "nextcloud/tasks", + "description": "Nextcloud Tasks", + "type": "project", + "license": "AGPL", + "authors": [ + { + "name": "Bernhard Posselt", + "email": "dev@bernhard-posselt.com" + } + ], + "require": {}, + "require-dev": { + "nextcloud/coding-standard": "^0.2.0", + "phpunit/phpunit": "^7.5" + }, + "config": { + "optimize-autoloader": true, + "classmap-authoritative": true + }, + "scripts": { + "cs:check": "php-cs-fixer fix --dry-run --verbose", + "cs:fix": "php-cs-fixer fix", + "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" + } } |