-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.php-cs-fixer.php
35 lines (30 loc) · 995 Bytes
/
.php-cs-fixer.php
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
27
28
29
30
31
32
33
34
35
<?php
/*
* This file is part of Cecil.
*
* Copyright (c) Arnaud Ligny <arnaud@ligny.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$finder = (new PhpCsFixer\Finder())
->ignoreDotFiles(false)
->ignoreVCSIgnored(true)
->exclude(['tests/fixtures'])
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@PSR12' => true,
'native_function_invocation' => true,
'nullable_type_declaration_for_default_null_value' => true,
'header_comment' => ['header' => <<<'EOF'
This file is part of Cecil.
Copyright (c) Arnaud Ligny <arnaud@ligny.fr>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF],
])
->setFinder($finder)
;