-
Notifications
You must be signed in to change notification settings - Fork 7
/
.php-cs-fixer.dist.php
28 lines (22 loc) · 829 Bytes
/
.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
<?php
declare(strict_types=1);
$fileHeaderComment = <<<COMMENT
This file is part of the SwaggerResolverBundle package.
(c) Viktor Linkin <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
COMMENT;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('Resources/config')
->exclude('var')
->notPath('Tests/Functional/src/swagger.php'); // PHPCS-Fixer does not recognise the DocBlock inside swagger.php.
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit75Migration:risky' => true,
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'],
])
->setRiskyAllowed(true)
->setFinder($finder);