-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
34 lines (29 loc) · 806 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
34 lines (29 loc) · 806 Bytes
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
<?php
$licence = <<<'EOF'
This file is part of the ALTO library.
© 2026–present Simon André
For full copyright and license information, please see
the LICENSE file distributed with this source code.
EOF;
$finder = (new PhpCsFixer\Finder())
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
->exclude([
'Language/php',
])
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@PER-CS' => true,
'@Symfony' => true,
'declare_strict_types' => true,
'header_comment' => ['header' => $licence],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
])
;