-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.php-cs-fixer.fixture.php
41 lines (33 loc) · 1.21 KB
/
.php-cs-fixer.fixture.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
<?php
declare(strict_types=1);
/**
* Copyright (c) 2018-2024 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/phpstan-rules
*/
use Ergebnis\PhpCsFixer;
$ruleSet = PhpCsFixer\Config\RuleSet\Php81::create()
->withHeader('')
->withRules(PhpCsFixer\Config\Rules::fromArray([
'constant_case' => false,
'declare_strict_types' => false,
'error_suppression' => false,
'final_class' => false,
'final_internal_class' => false,
'final_public_method_for_abstract_class' => false,
'header_comment' => false,
'lowercase_keywords' => false,
'magic_method_casing' => false,
'nullable_type_declaration' => false,
'protected_to_private' => false,
'static_lambda' => false,
]));
$config = PhpCsFixer\Config\Factory::fromRuleSet($ruleSet);
$config->getFinder()
->in(__DIR__ . '/test/Fixture')
->notPath('Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Success/ImplicitlyAbstractTestCase.php');
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php_cs.fixture.cache');
return $config;