Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve #273 mark composer-runtime-api as always used #274

Merged
merged 1 commit into from Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Filter/FilterCollection.php
Expand Up @@ -20,6 +20,7 @@ final class FilterCollection implements IteratorAggregate, Countable
*/
private const GLOBAL_NAMED_EXCLUSION = [
'composer-plugin-api' => true,
'composer-runtime-api' => true,
'composer-unused/composer-unused-plugin' => true
];

Expand Down
1 change: 1 addition & 0 deletions tests/Integration/UnusedCommandTest.php
Expand Up @@ -82,6 +82,7 @@ public function itShouldNotReportSpecialPackages(): void

self::assertSame(0, $exitCode);
self::assertStringNotContainsString('composer-plugin-api', $commandTester->getDisplay());
self::assertStringNotContainsString('composer-runtime-api', $commandTester->getDisplay());
self::assertStringContainsString('Found 0 used, 0 unused, 0 ignored and 0 zombie packages', $commandTester->getDisplay());
}

Expand Down
Expand Up @@ -2,6 +2,7 @@
"name": "ns/lib",
"require": {
"dummy/test-package": "1.0",
"composer-plugin-api": "^2.0"
"composer-plugin-api": "^2.0",
"composer-runtime-api": "^2.0"
}
}