forked from DamienHarper/auditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
50 lines (47 loc) · 1.55 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = (new Finder())
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->append([__FILE__])
;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@DoctrineAnnotation' => true,
'@PHPUnit84Migration:risky' => true,
'date_time_immutable' => true,
'final_public_method_for_abstract_class' => false,
'general_phpdoc_annotation_remove' => [
'annotations' => [
'expectedException',
'expectedExceptionMessage',
'expectedExceptionMessageRegExp',
],
],
'global_namespace_import' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'method_chaining_indentation' => true,
'nullable_type_declaration_for_default_null_value' => true,
'ordered_interfaces' => true,
'ordered_traits' => true,
'php_unit_test_class_requires_covers' => false,
'phpdoc_types' => true,
'phpdoc_to_param_type' => true,
'phpdoc_to_property_type' => true,
'phpdoc_to_return_type' => true,
'regular_callable_call' => true,
'self_static_accessor' => true,
'simplified_if_return' => true,
'simplified_null_return' => true,
'static_lambda' => true,
'get_class_to_class_keyword' => true,
])
->setFinder($finder)
;