-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
composer-unused.php
28 lines (24 loc) · 918 Bytes
/
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
24
25
26
27
28
<?php
declare(strict_types=1);
/**
* Copyright (c) 2021-2024 guanguans<ityaozm@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/guanguans/laravel-exception-notify
*/
use ComposerUnused\ComposerUnused\Configuration\Configuration;
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
use ComposerUnused\ComposerUnused\Configuration\PatternFilter;
use Webmozart\Glob\Glob;
return static fn (Configuration $configuration): Configuration => $configuration
// ->addNamedFilter(NamedFilter::fromString('symfony/config'))
// ->addPatternFilter(PatternFilter::fromString('/symfony\/.*/'))
->setAdditionalFilesFor(
'icanhazstring/composer-unused',
array_merge(
Glob::glob(__DIR__.'/*.php'),
Glob::glob(__DIR__.'/.*.php'),
),
);