-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.php_cs
31 lines (24 loc) · 835 Bytes
/
.php_cs
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
<?php
declare(strict_types=1);
$header = <<<'EOF'
Turns checkstyle based XML-Reports into Github Pull Request Annotations via the Checks API. This script is meant for use within your GithubAction.
(c) Markus Staab <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
https://github.com/staabm/annotate-pull-request-from-checkstyle
EOF;
$finder = PhpCsFixer\Finder::create()
->files()
->in(__DIR__)
->name('cs2pr');
return PhpCsFixer\Config::create()
->setFinder($finder)
->setRules([
'@PSR2' => true,
'header_comment' => [
'commentType' => 'comment',
'header' => $header,
'location' => 'after_declare_strict',
'separate' => 'both',
]
]);