-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
.php-cs-fixer.dist.php
43 lines (36 loc) · 1003 Bytes
/
.php-cs-fixer.dist.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
36
37
38
39
40
41
42
43
<?php declare(strict_types=1);
use Fidry\PhpCsFixerConfig\FidryConfig;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in([
'fixtures',
'bin',
'src',
'tests',
])
->append([
'bin/box',
'bin/generate_default_stub',
])
->exclude([
'bench',
'build/dir018/var',
])
->notName('*-phar-stub.php');
$overriddenRules = [
'header_comment' => [
'header' => <<<'EOF'
This file is part of the box project.
(c) Kevin Herrera <kevin@herrera.io>
Théo Fidry <theo.fidry@gmail.com>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF,
'location' => 'after_declare_strict',
],
];
$config = new FidryConfig('', 82_000);
$config->addRules($overriddenRules);
$config->setCacheFile(__DIR__.'/dist/.php-cs-fixer.cache');
$config->setFinder($finder);
return $config;