forked from zephir-lang/zephir
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs.dist
55 lines (48 loc) · 1.42 KB
/
.php_cs.dist
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
<?php
/*
* This file is part of the Zephir.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
if (!file_exists(__DIR__.'/Library')) {
exit(0);
}
$header = <<<'EOF'
This file is part of the Zephir.
(c) Phalcon Team <[email protected]>
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->append([__FILE__])
->exclude([
'ext',
'ide',
'templates/ZendEngine3',
'templates/Api',
'tests/fixtures',
'tests/sharness',
])
->notPath('#tests/fixtures/stubs/.*#');
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit48Migration:risky' => true,
'@PSR2' => true,
'php_unit_no_expectation_annotation' => false,
'array_syntax' => ['syntax' => 'short'],
'fopen_flags' => false,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'protected_to_private' => false,
'phpdoc_var_annotation_correct_order' => true,
'no_superfluous_phpdoc_tags' => false,
'single_line_throw' => false,
'psr_autoloading' => false,
]);