-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscoper.inc.php
49 lines (47 loc) · 1.31 KB
/
scoper.inc.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
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* PHP-Scoper configuration file.
*
* @package SubscribeWithGoogle\WordPress
* @copyright 2019 Google LLC
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://developers.google.com/news/subscribe
*/
use Isolated\Symfony\Component\Finder\Finder;
return array(
'prefix' => 'SubscribeWithGoogle\WordPress_Dependencies',
'finders' => array(
// General dependencies, except Google API services.
Finder::create()
->files()
->ignoreVCS( true )
->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.(json|lock)/' )
->exclude(
array(
'doc',
'test',
'test_old',
'tests',
'Tests',
'vendor-bin',
)
)
->path( '#^firebase/#' )
->path( '#^google/apiclient/#' )
->path( '#^google/auth/#' )
->path( '#^guzzlehttp/#' )
->path( '#^monolog/#' )
->path( '#^psr/#' )
->path( '#^ralouphie/#' )
->path( '#^react/#' )
->in( 'vendor' ),
),
'files-whitelist' => array(
// This dependency is a global function which should remain global.
'vendor/ralouphie/getallheaders/src/getallheaders.php',
),
'whitelist' => array(),
'whitelist-global-constants' => false,
'whitelist-global-classes' => false,
'whitelist-global-functions' => false,
);