-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcomposer-dependency-analyser.php
More file actions
40 lines (37 loc) · 1.19 KB
/
Copy pathcomposer-dependency-analyser.php
File metadata and controls
40 lines (37 loc) · 1.19 KB
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
<?php
declare(strict_types=1);
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
return (new Configuration())
->addPathToScan(__DIR__ . '/bootstrap.php', false)
->ignoreUnknownFunctions(['PHPStan\Testing\assertType'])
->ignoreUnknownClasses(['Page', 'PageController'])
->ignoreErrorsOnPackagesAndPaths(
[
// Bundled with phpstan/phpstan
'nikic/php-parser',
'phpstan/phpdoc-parser',
'symfony/finder',
],
[__DIR__ . '/src'],
[ErrorType::SHADOW_DEPENDENCY]
)
->ignoreErrorsOnPackagesAndPaths(
[
// Bundled with phpstan/phpstan
'nikic/php-parser',
],
[__DIR__ . '/tests'],
[ErrorType::SHADOW_DEPENDENCY]
)
->ignoreErrorsOnPackagesAndPaths(
[
'silverstripe/framework',
],
[
__DIR__ . '/bootstrap.php',
__DIR__ . '/src/Application/SilverstanKernel.php',
__DIR__ . '/src/ConfigurationResolver/ConfigCollectionFactory/LazyConfigCollectionFactory.php',
],
[ErrorType::DEV_DEPENDENCY_IN_PROD]
);