Excluded checking of directory var from codesniffer

This commit is contained in:
Kevin Frantz 2019-01-05 18:55:13 +01:00
parent edc8a941af
commit 4a09ff55a8
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -1,8 +1,11 @@
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('var')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
])
])->setFinder($finder)
;