Hi I am using php-cs-fixer for first time. I know that we have to set a .php_cs.dist file
This is a example file that i got from the git repository of php-cs-fixer.
$finder = PhpCsFixer\Finder::create()
->exclude('somedir')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'full_opening_tag' => false,
))
->setFinder($finder);
When i am running this command on CLI
php-cs-fixer fix --config=.php_cs.dist --allow-risky
It is saying that i need to give options to --allow-risky but in documentation it is nothing mention that how to set option for allow risky help me out guys.The sooner the better.
my question How to run risky rules? As there is nothing mentioned that how to use allow risky rule in php-cs-fixer.