forked from pavlokomarov/roach-php-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
33 lines (26 loc) · 844 Bytes
/
.php-cs-fixer.php
File metadata and controls
33 lines (26 loc) · 844 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
<?php
use Ergebnis\PhpCsFixer\Config;
use PhpCsFixer\RuleSet\RuleSet;
$header = <<<EOF
Copyright (c) 2021 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;
$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php80($header), [
'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->getFinder()->in(__DIR__);
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache');
return $config;