forked from janephp/janephp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
39 lines (36 loc) · 1.36 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
<?php
$finder = (new PhpCsFixer\Finder())
->exclude('Component/JsonSchema/JsonSchema')
->exclude('Component/JsonSchema/Generator/Runtime/data')
->exclude('Component/JsonSchema/Tests/fixtures')
->exclude('Component/JsonSchema/Tests/generated')
->exclude('Component/OpenApi2/JsonSchema')
->exclude('Component/OpenApi2/Tests/fixtures')
->exclude('Component/OpenApi2/Tests/client/generated')
->exclude('Component/OpenApi3/JsonSchema')
->exclude('Component/OpenApi3/Tests/fixtures')
->exclude('Component/OpenApi3/Tests/client/generated')
->exclude('Bundle/JsonSchemaBundle/Tests/Resources')
->exclude('Bundle/OpenApiBundle/Tests/Resources')
->exclude('cache')
->in(__DIR__ . '/src')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'yoda_style' => false,
'native_constant_invocation' => false,
'no_superfluous_phpdoc_tags' => [
'remove_inheritdoc' => false,
],
'nullable_type_declaration_for_default_null_value' => false,
// Can be removed once PHP requirement is upgraded
'get_class_to_class_keyword' => false,
'modernize_strpos' => false,
])
->setFinder($finder)
;