-
-
Notifications
You must be signed in to change notification settings - Fork 440
Expand file tree
/
Copy pathcomposer-dependency-analyser.php
More file actions
29 lines (22 loc) · 972 Bytes
/
composer-dependency-analyser.php
File metadata and controls
29 lines (22 loc) · 972 Bytes
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
<?php
declare(strict_types=1);
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
$config = new Configuration();
return $config
->addPathToScan(__DIR__ . '/build/config', false)
->addPathToScan('bin', false)
// prepared test tooling
->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::DEV_DEPENDENCY_IN_PROD])
// pinned v3.x version
->ignoreErrorsOnPackage('react/promise', [ErrorType::UNUSED_DEPENDENCY])
// ensure use version ^3.2.0
->ignoreErrorsOnPackage('composer/pcre', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPath(__DIR__ . '/src/Reporting/DeprecatedRulesReporter.php', [ErrorType::UNKNOWN_CLASS])
->ignoreErrorsOnPaths([
__DIR__ . '/stubs',
__DIR__ . '/tests',
__DIR__ . '/rules-tests',
__DIR__ . '/build/config/config-downgrade.php',
], [ErrorType::UNKNOWN_CLASS])
->disableExtensionsAnalysis();