Skip to content

Commit

Permalink
Merge pull request #249 from WyriHaximus/migrate-compuser-unused-conf…
Browse files Browse the repository at this point in the history
…ig-format

Migrate composer unused config format
  • Loading branch information
WyriHaximus authored Apr 1, 2024
2 parents 9a5919c + bddcbd5 commit fecf5fa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ composer-require-checker: ## Ensure we require every package used in this packag
$(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=./etc/qa/composer-require-checker.json

composer-unused: ## Ensure we don't require any package we don't use in this package directly
$(DOCKER_RUN) vendor/bin/composer-unused --ansi
$(DOCKER_RUN) vendor/bin/composer-unused --ansi --configuration=./etc/qa/composer-unused.php

composer-install: ## Install dependencies
$(DOCKER_RUN) composer install --no-progress --ansi --no-interaction --prefer-dist -o
Expand Down
5 changes: 0 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@
},
"sort-packages": true
},
"extra": {
"unused": [
"wyrihaximus/phpstan-react"
]
},
"scripts": {
"post-install-cmd": [
"composer normalize",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions etc/qa/composer-unused.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use ComposerUnused\ComposerUnused\Configuration\Configuration;
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;

return static function (Configuration $config): Configuration {
return $config
->addNamedFilter(NamedFilter::fromString('wyrihaximus/phpstan-react'));
};

0 comments on commit fecf5fa

Please sign in to comment.