-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
.php-cs-fixer.php
36 lines (28 loc) · 951 Bytes
/
.php-cs-fixer.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 Ergebnis\PhpCsFixer\Config;
$header = <<<EOF
Copyright (c) 2024 Kai Sassnowski
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
@see https://github.com/roach-php/roach
EOF;
$ruleSet = Config\RuleSet\Php80::create()
->withHeader($header)
->withRules(Config\Rules::fromArray([
'php_unit_test_class_requires_covers' => false,
'class_attributes_separation' => [
'elements' => [
'const' => 'one',
'method' => 'one',
'property' => 'one',
'trait_import' => 'none',
],
],
'error_suppression' => [
'noise_remaining_usages' => false,
],
]));
$config = Config\Factory::fromRuleSet($ruleSet);
$config->getFinder()->in(__DIR__);
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache');
return $config;