-
Notifications
You must be signed in to change notification settings - Fork 15
/
composer-unused.php
23 lines (20 loc) · 1.01 KB
/
composer-unused.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
declare(strict_types=1);
use ComposerUnused\ComposerUnused\Configuration\Configuration;
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
use ComposerUnused\ComposerUnused\Configuration\PatternFilter;
use Webmozart\Glob\Glob;
return static function (Configuration $config): Configuration {
return $config
->addPatternFilter(PatternFilter::fromString('/ext-.*/'))
->addNamedFilter(NamedFilter::fromString('doctrine/doctrine-migrations-bundle'))
->addNamedFilter(NamedFilter::fromString('dukecity/command-scheduler-bundle'))
->addNamedFilter(NamedFilter::fromString('phpdocumentor/reflection-docblock'))
->addNamedFilter(NamedFilter::fromString('nelmio/cors-bundle'))
->addPatternFilter(PatternFilter::fromString('/symfony\/.*/'))
->addNamedFilter(NamedFilter::fromString('twig/extra-bundle'))
->setAdditionalFilesFor('icanhazstring/composer-unused', [
__FILE__,
...Glob::glob(__DIR__ . '/config/*.php'),
]);
};