forked from thelia/thelia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
66 lines (61 loc) · 1.9 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/*
* This file is part of the Thelia package.
* http://www.thelia.net
*
* (c) OpenStudio <info@thelia.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Symfony\Component\Filesystem\Filesystem;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'var',
'vendor',
'.docker',
'config',
'local/modules/OpenApi',
'local/modules/SmartyRedirection',
'local/modules/ChoiceFilter',
'local/modules/StoreSeo',
'local/modules/BetterSeo',
'local/modules/ShortCode',
'local/modules/ShortCodeMeta',
'local/modules/ForcePhone',
'local/modules/HookTest',
'local/modules/CustomDelivery',
'local/modules/Tinymce/Resources',
'local/modules/TheliaLibrary',
'local/modules/TheliaBlocks',
'local/modules/ProductLoopAttributeFilter',
])
;
(new Filesystem())->mkdir(__DIR__.'/var/cache-ci');
return (new PhpCsFixer\Config())
->setCacheFile(__DIR__.'/var/cache-ci/.php_cs.cache')
->setRiskyAllowed(true)
->setRules([
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'yoda_style' => false,
'single_line_throw' => false,
'declare_strict_types' => false,
'phpdoc_order' => true,
'header_comment' => [
'header' => implode("\n", [
'This file is part of the Thelia package.',
'http://www.thelia.net',
'',
'(c) OpenStudio <info@thelia.net>',
'',
'For the full copyright and license information, please view the LICENSE',
'file that was distributed with this source code.',
]),
],
])
->setFinder($finder)
;