From 5b0c0f8195a979bde840f4b839c789075d3eeb91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 5 Feb 2020 20:28:35 +0100 Subject: [PATCH] Add lint script to composer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- composer.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/composer.json b/composer.json index 52017f826..9a6aced1f 100644 --- a/composer.json +++ b/composer.json @@ -16,5 +16,12 @@ "christophwurst/nextcloud": "^17", "jakub-onderka/php-parallel-lint": "^1.0.0", "phpunit/phpunit": "^8" + }, + "config": { + "optimize-autoloader": true, + "classmap-authoritative": true + }, + "scripts": { + "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" } }