forked from weDevsOfficial/wedocs-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
33 lines (26 loc) · 787 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
32
33
<?php
require_once __DIR__ . '/vendor/tareq1988/wp-php-cs-fixer/loader.php';
$header = <<<'EOF'
This file is part of weDocs.
(c) Tareq Hasan <[email protected]>
This source file is subject to the GNU GPL v2 or later
that is bundled with this source code in the file LICENSE.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude('node_modules')
->exclude('vendors')
->exclude('assets')
->exclude('languages')
->in( __DIR__ )
;
$config = PhpCsFixer\Config::create()
->registerCustomFixers([
new WeDevs\Fixer\SpaceInsideParenthesisFixer(),
new WeDevs\Fixer\BlankLineAfterClassOpeningFixer()
])
->setRiskyAllowed(true)
->setUsingCache(false)
->setRules( WeDevs\Fixer\Fixer::rules() )
->setFinder( $finder )
;
return $config;