-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.php-cs-fixer.php
34 lines (26 loc) · 927 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
<?php
declare(strict_types=1);
use Ergebnis\PhpCsFixer\Config;
$header = <<<EOF
Copyright (c) 2022 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/laravel-arcanist/arcanist
EOF;
$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php80($header), [
'php_unit_test_class_requires_covers' => false,
'php_unit_internal_class' => false,
'error_suppression' => [
'noise_remaining_usages' => false,
],
'final_class' => false,
'final_public_method_for_abstract_class' => false,
'protected_to_private' => false,
'strict_comparison' => false,
'static_lambda' => false,
]);
$config->getFinder()
->in([__DIR__ . '/src', __DIR__ . '/tests'])
->exclude('__snapshots__');
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache');
return $config;