-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy path.php-cs-fixer.dist.php
36 lines (33 loc) · 1.21 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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->exclude('app/cdash/config')
->exclude('bootstrap/cache')
->exclude('node_modules')
->exclude('storage')
->exclude('vendor')
->exclude('_build')
->exclude('resources')
->exclude('public')
->exclude('app/cdash/tests/kwtest/simpletest')
->notPath('app/cdash/tests/config.test.local.php')
->in(__DIR__);
$config = new Config();
return $config->setRules([
'@PSR12' => true,
'@PSR12:risky' => true,
'@PHP82Migration' => true,
'@PHP82Migration:risky' => true,
'@Symfony' => true,
'yoda_style' => false,
'blank_line_before_statement' => false,
'phpdoc_summary' => false,
'concat_space' => ['spacing' => 'one'],
'increment_style' => ['style' => 'post'],
'fully_qualified_strict_types' => ['import_symbols' => true],
'global_namespace_import' => ['import_classes' => true, 'import_constants' => null, 'import_functions' => null],
'phpdoc_align' => ['align' => 'left'],
'declare_strict_types' => false, // TODO: turn this back on. Currently causes errors...
'void_return' => false, // TODO: turn this back on. Currently causes errors...
])->setFinder($finder);