-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.php-cs-fixer.dist.php
36 lines (32 loc) · 1.1 KB
/
.php-cs-fixer.dist.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
<?php
declare(strict_types=1);
if (!file_exists(__DIR__.'/elasticms-cli/src')) {
exit(0);
}
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/build')
->in(__DIR__.'/elasticms-*/src')
->in(__DIR__.'/elasticms-*/tests')
->in(__DIR__.'/elasticms-*/migrations')
->in(__DIR__.'/EMS/*/src')
->in(__DIR__.'/EMS/*/tests')
->exclude('/EMS/helpers/tmp')
->name(['release', 'translations'])
;
return new PhpCsFixer\Config()
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'@PHP84Migration' => true,
'declare_strict_types' => true,
'phpdoc_separation' => ['skip_unlisted_annotations' => true],
'native_function_invocation' => ['include' => ['@all']],
'no_unused_imports' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true],
'no_alias_functions' => true,
'modernize_types_casting' => true
])
->setRiskyAllowed(true)
->setCacheFile(__DIR__.'/.cache/.php-cs-fixer.cache')
->setFinder($finder)
;