generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathcomposer-dependency-analyser.php
More file actions
21 lines (18 loc) · 934 Bytes
/
composer-dependency-analyser.php
File metadata and controls
21 lines (18 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
$root = __DIR__;
return (new Configuration())
->disableComposerAutoloadPathScan()
->setFileExtensions(['php'])
->addPathToScan($root . '/src', isDev: false)
->addPathToScan($root . '/config', isDev: false)
->addPathToScan($root . '/public/index.php', isDev: false)
->addPathToScan($root . '/yii', isDev: false)
->addPathToScan($root . '/tests', isDev: true)
->ignoreErrorsOnPackage('psr/container', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('yiisoft/config', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('yiisoft/di', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('yiisoft/view', [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackage('yiisoft/router-fastroute', [ErrorType::UNUSED_DEPENDENCY]);