Skip to content

Commit 537430f

Browse files
committed
Update Unused implementation
1 parent 5b9a90e commit 537430f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/unused.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
6767
fi
6868
6969
- name: Detect unused packages
70-
run: composer-unused -vvv --profile --ansi --no-interaction --no-progress --excludePackage=php --excludePackage=tatter/alerts --excludePackage=tatter/preferences --excludePackage=tatter/thumbnails
70+
run: composer-unused -vvv --output-format=github --ansi --no-interaction --no-progress

composer-unused.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use ComposerUnused\ComposerUnused\Configuration\Configuration;
6+
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
7+
8+
return static function (Configuration $config): Configuration {
9+
return $config
10+
->addNamedFilter(NamedFilter::fromString('enyo/dropzone'))
11+
->setAdditionalFilesFor('tatter/preferences', [
12+
__DIR__ . '/vendor/tatter/preferences/src/Helpers/preferences_helper.php',
13+
]);
14+
};

0 commit comments

Comments
 (0)