|
2 | 2 |
|
3 | 3 | $finder = PhpCsFixer\Finder::create() |
4 | 4 | ->exclude('oql') |
5 | | - //->in(__DIR__ . '/addons') |
6 | | -// ->in(__DIR__ . '/application') |
7 | | - //->in(__DIR__ . '/core') |
8 | | -// ->in(__DIR__ . '/datamodels') |
9 | | -// ->in(__DIR__ . '/dictionaries') |
10 | | -// ->in(__DIR__ . '/pages') |
11 | | -// ->in(__DIR__ . '/portal') |
12 | | -// ->in(__DIR__ . '/setup') |
13 | | -// ->in(__DIR__ . '/sources') |
14 | | -// ->in(__DIR__ . '/synchro') |
15 | | -// ->in(__DIR__ . '/tests') |
| 5 | + ->in(__DIR__.'/addons') |
| 6 | + ->in(__DIR__.'/application') |
| 7 | + ->in(__DIR__.'/core') |
| 8 | + ->in(__DIR__.'/datamodels') |
| 9 | + ->in(__DIR__.'/dictionaries') |
| 10 | + ->in(__DIR__.'/pages') |
| 11 | + ->in(__DIR__.'/portal') |
| 12 | + ->in(__DIR__.'/setup') |
| 13 | + ->in(__DIR__.'/sources') |
| 14 | + ->in(__DIR__.'/synchro') |
| 15 | + ->in(__DIR__.'/tests') |
16 | 16 | ->in(__DIR__ . '/webservices') |
17 | 17 | ; |
18 | 18 |
|
19 | 19 | $config = new PhpCsFixer\Config(); |
20 | 20 | return $config->setRiskyAllowed(true) |
21 | 21 | ->setRules([ |
22 | | - '@PSR12' => true, |
23 | | - // We use PSR12 with consistent brace placement. |
24 | | - 'curly_braces_position' => [ |
25 | | - 'functions_opening_brace' => 'same_line', |
26 | | - 'classes_opening_brace' => 'same_line', |
27 | | - ], |
28 | | - // declare(strict_types=1) on the same line as <?php. |
29 | | - 'blank_line_after_opening_tag' => false, |
30 | | - 'declare_strict_types' => true, |
31 | | - // Keep argument formatting for now. |
32 | | - 'method_argument_space' => ['on_multiline' => 'ignore'], |
33 | | - 'phpdoc_align' => ['align' => 'left'], |
34 | | - 'phpdoc_trim' => true, |
35 | | - 'no_empty_phpdoc' => true, |
36 | | - 'no_superfluous_phpdoc_tags' => ['allow_mixed' => true], |
| 22 | + '@PSR2' => true, |
37 | 23 | 'no_extra_blank_lines' => true, |
38 | 24 | ]) |
39 | 25 | ->setFinder($finder) |
|
0 commit comments