Move PHP-CS-Fixer cache file out of the project to avoid IDE annoyance

This commit is contained in:
Adrien Crivelli 2018-10-21 15:33:56 +11:00
parent 2c981e47a1
commit 7b362bd9de
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 1 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
/analysis
/vendor/
/phpunit.xml
/.php_cs.cache
## IDE support
*.buildpath

View File

@ -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'],