forked from GatoGraphQL/GatoGraphQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
38 lines (36 loc) · 1.55 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
34
35
36
37
38
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/layers/API/packages/*/src',
__DIR__ . '/layers/API/packages/*/tests',
__DIR__ . '/layers/Backbone/packages/*/src',
__DIR__ . '/layers/Backbone/packages/*/tests',
__DIR__ . '/layers/CMSSchema/packages/*/src',
__DIR__ . '/layers/CMSSchema/packages/*/tests',
__DIR__ . '/layers/Engine/packages/*/src',
__DIR__ . '/layers/Engine/packages/*/tests',
__DIR__ . '/layers/GatoGraphQLForWP/packages/*/src',
__DIR__ . '/layers/GatoGraphQLForWP/packages/*/tests',
__DIR__ . '/layers/GatoGraphQLForWP/plugins/*/src',
__DIR__ . '/layers/GatoGraphQLForWP/plugins/*/tests',
__DIR__ . '/layers/GraphQLByPoP/packages/*/src',
__DIR__ . '/layers/GraphQLByPoP/packages/*/tests',
__DIR__ . '/layers/Legacy/Engine/packages/*/src',
__DIR__ . '/layers/Legacy/Schema/packages/*/src',
__DIR__ . '/layers/Legacy/Wassup/packages/*/src',
__DIR__ . '/layers/Schema/packages/*/src',
__DIR__ . '/layers/Schema/packages/*/tests',
__DIR__ . '/layers/SiteBuilder/packages/*/src',
__DIR__ . '/layers/SiteBuilder/packages/*/tests',
__DIR__ . '/layers/Wassup/packages/*/src',
__DIR__ . '/layers/Wassup/packages/*/tests',
__DIR__ . '/layers/WPSchema/packages/*/src',
__DIR__ . '/layers/WPSchema/packages/*/tests',
])
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'no_unused_imports' => true,
])
->setFinder($finder)
;