-
Notifications
You must be signed in to change notification settings - Fork 9
/
.php-cs-fixer.dist.php
43 lines (40 loc) · 1.29 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
<?php
declare(strict_types=1);
use PedroTroller\CS\Fixer\Fixers;
use PedroTroller\CS\Fixer\RuleSetFactory;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->setRiskyAllowed(true)
->setRules(
RuleSetFactory::create()
->per(2, true)
->phpCsFixer(true)
->php(8.1, true)
->pedrotroller(true)
->enable('align_multiline_comment')
->enable('array_indentation')
->enable('binary_operator_spaces', [
'operators' => [
'=' => 'align_single_space_minimal',
'=>' => 'align_single_space_minimal',
],
])
->enable('global_namespace_import', [
'import_classes' => true, 'import_constants' => false, 'import_functions' => false,
])
->enable('no_superfluous_phpdoc_tags')
->enable('ordered_imports')
->enable('ordered_interfaces')
->enable('simplified_null_return')
->disable('simplified_null_return')
->getRules()
)
->setUsingCache(false)
->registerCustomFixers(new Fixers())
->setFinder(
Finder::create()
->in(__DIR__)
->append([__FILE__, __DIR__.'/bin/doc'])
)
;