forked from ivmos/iso3166
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
67 lines (63 loc) · 2.08 KB
/
.php_cs
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
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
$header = <<<EOF
(c) Rob Bast <[email protected]>
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF;
$finder = Symfony\CS\Finder\DefaultFinder::create()
->files()
->name('*.php')
->exclude('vendor')
->in(__DIR__)
;
/* Based on dev-master|^2.0 of php-cs-fixer */
return Symfony\CS\Config\Config::create('ISO3166', 'ISO3166 style guide')
->setUsingCache(false)
->setUsingLinter(true)
->setRiskyAllowed(true)
->setRules([
// default
'@PSR2' => true,
// additionally
'blankline_after_open_tag' => true,
'concat_without_spaces' => true,
'extra_empty_lines' => true,
'function_typehint_space' => true,
'header_comment' => ['header' => $header],
'include' => true,
'method_separation' => true,
'multiline_array_trailing_comma' => true,
'new_with_braces' => true,
'newline_after_open_tag' => true,
'no_blank_lines_after_class_opening' => true,
'no_empty_lines_after_phpdocs' => true,
'operators_spaces' => true,
'ordered_use' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag' => true,
'phpdoc_no_access' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_order' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_summary' => true,
'phpdoc_to_comment' => true,
'phpdoc_trim' => true,
'remove_leading_slash_use' => true,
'remove_lines_between_uses' => true,
'return' => true,
'short_array_syntax' => true,
'single_array_no_trailing_comma' => true,
'single_blank_line_before_namespace' => true,
'single_quote' => true,
'spaces_cast' => true,
'strict' => true,
'ternary_spaces' => true,
'trim_array_spaces' => true,
'unalign_double_arrow' => true,
'unalign_equals' => true,
'whitespacy_lines' => true,
])
->finder($finder)
;