-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
40 lines (36 loc) · 1.16 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
#!/usr/bin/env php
<?php
$author = '@author Marc MOREAU <moreau.marc.web@gmail.com>';
$license = '@license https://github.com/MockingMagician/moneysaurus/blob/master/LICENSE.md Apache License 2.0';
$link = '@link https://github.com/MockingMagician/moneysaurus/blob/master/README.md';
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PHP71Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'php_unit_test_class_requires_covers' => false,
'self_accessor' => false,
'php_unit_strict' => false,
'yoda_style' => true,
'strict_comparison' => false,
'native_function_invocation' => [
'include' => [
'@internal',
],
],
'header_comment' => [
'header' => implode("\n", [$author, $license, $link]),
'comment_type' => 'PHPDoc',
],
])
->setFinder($finder)
;
return $config;