forked from qossmic/deptrac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
33 lines (31 loc) · 1.04 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
<?php
$finder = (new PhpCsFixer\Finder())
->in([__DIR__.'/config', __DIR__.'/src', __DIR__.'/tests'])
->exclude('Fixtures')
->append([__DIR__.'/deptrac.php']);
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'global_namespace_import' => [
'import_constants' => true,
'import_functions' => true,
'import_classes' => true,
],
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'no_unused_imports' => true,
'octal_notation' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['class', 'function', 'const'],
],
'phpdoc_to_comment' => false,
'self_static_accessor' => true,
'static_lambda' => true,
'strict_param' => true,
])
->setFinder($finder);