forked from liip/metadata-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
54 lines (46 loc) · 1.83 KB
/
.php_cs.dist
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
51
52
53
54
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(
[
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => true,
'list_syntax' => ['syntax' => 'short'],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'],
'native_function_invocation' => [
'include' => ['@compiler_optimized'],
],
'no_superfluous_phpdoc_tags' => true,
'php_unit_dedicate_assert' => true,
'php_unit_expectation' => true,
'php_unit_mock' => true,
'php_unit_namespaced' => true,
'php_unit_no_expectation_annotation' => true,
'phpdoc_to_return_type' => true,
'static_lambda' => true,
'ternary_to_null_coalescing' => true,
'void_return' => true,
// Don't mark tests as @internal
'php_unit_internal_class' => false,
// Don't require @covers in tests
'php_unit_test_class_requires_covers' => false,
// Don't require dots in phpdocs
'phpdoc_annotation_without_dot' => false,
'phpdoc_summary' => false,
// Sometimes we need to do non-strict comparison
'strict_comparison' => false,
// The convention with phpunit has been to use assertions with the object context.
'php_unit_test_case_static_method_calls' => false,
]
)
->setFinder($finder)
;