Hi,
i just updates and to the newest version.
But now my excluded folders are srill scaned and fixed.
This is how my .php_cs file locks like located in the root:
$finder = PhpCsFixer\Finder::create()
->exclude(['web', 'var'])
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'full_opening_tag' => false,
])
->finder($finder)
;
How can i avoid to scan specified folders?
Regards,
Thomas
php -v
php-cs-fixer -v
?
also, what is the full CLI command you are using ?
PHP 5.5.34 (cli) (built: Apr 22 2016 19:16:58)
PHP CS Fixer version 2.0-DEV by Fabien Potencier and Dariusz Ruminski
and i use Symfony 3.2.1
Thx.
also, what is the full CLI command you are using ?
from the root
vendor/bin/php-cs-fixer -v fix .
i installed it via composer
is it
vendor/bin/php-cs-fixer -v fix . from the root
or
vendor/bin/php-cs-fixer -v fix . from the root
(so if dot is a part of command or not) ?
yes.. dot is a part of the comment
try with -vvv --dry-run, I suspect your config file is not used (the -vvv should state it does)
Then you are specifying the path in your config file, and then override it via CLI param.
either don't specify it via CLI param (as it's current dir and not sth more precise), or use --path-mode=intersection param to make intersection of your config path and CLI arg path.
the dot is part of the comment on github, not of the bash command I believe
ok.. got it. Solved!! Thx.
Most helpful comment
Then you are specifying the path in your config file, and then override it via CLI param.
either don't specify it via CLI param (as it's
current dirand not sth more precise), or use--path-mode=intersectionparam to make intersection of your config path and CLI arg path.