From 4a09ff55a8026435659b04fcb8e1f04e813ec8eb Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 5 Jan 2019 18:55:13 +0100 Subject: [PATCH] Excluded checking of directory var from codesniffer --- administration/format-code.sh | 2 +- application/.php_cs.dist | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/administration/format-code.sh b/administration/format-code.sh index 309d3a2..3f1c633 100644 --- a/administration/format-code.sh +++ b/administration/format-code.sh @@ -1,3 +1,3 @@ #!/bin/bash cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1 -docker-compose exec php php vendor/bin/php-cs-fixer fix . +docker-compose exec php php vendor/bin/php-cs-fixer fix diff --git a/application/.php_cs.dist b/application/.php_cs.dist index d80e5d6..53ed6c9 100644 --- a/application/.php_cs.dist +++ b/application/.php_cs.dist @@ -1,8 +1,11 @@ exclude('var') + ->in(__DIR__); return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, 'array_syntax' => ['syntax' => 'short'], - ]) + ])->setFinder($finder) ;