From 7b362bd9de278c496c94d0ac592962c13c4f31ab Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sun, 21 Oct 2018 15:33:56 +1100 Subject: [PATCH] Move PHP-CS-Fixer cache file out of the project to avoid IDE annoyance --- .gitignore | 1 - .php_cs.dist | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 011328ed..0723541d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ /analysis /vendor/ /phpunit.xml -/.php_cs.cache ## IDE support *.buildpath diff --git a/.php_cs.dist b/.php_cs.dist index 5a494b87..29b85d77 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -9,6 +9,7 @@ $finder = PhpCsFixer\Finder::create() return PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setFinder($finder) + ->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer' . preg_replace('~\W~', '-', __DIR__)) ->setRules([ 'align_multiline_comment' => true, 'array_syntax' => ['syntax' => 'short'],