forked from FriendsOfPHP/pickle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
26 lines (24 loc) · 846 Bytes
/
.php-cs-fixer.php
File metadata and controls
26 lines (24 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('/build')
->exclude('cache')
->exclude('vendor')
->exclude('node_modules')
// ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__)
->ignoreVCS(true);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@Symfony' => true,
'@Symfony:risky'=>true,
'array_syntax' => array('syntax' => 'short'),
'ordered_imports' => true,
// 'declare_strict_types' => true, // @PHP70Migration:risky, @PHP71Migration:risky
// 'ternary_to_null_coalescing' => true, // @PHP70Migration, @PHP71Migration
// 'void_return' => true, // @PHP71Migration:risky
'visibility_required'=> true,
])
->setCacheFile(__DIR__.'/.php_cs.cache')
->setFinder($finder)
->setRiskyAllowed(true)
;