From 332ca112b6a4162d818e14aa8174c1d67d1e537d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Fri, 22 Nov 2024 23:52:02 +0100 Subject: [PATCH] Ignore errors because those extensions are used for something --- app/composer-dependency-analyser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/composer-dependency-analyser.php b/app/composer-dependency-analyser.php index 817c82607..4ddb79aa7 100644 --- a/app/composer-dependency-analyser.php +++ b/app/composer-dependency-analyser.php @@ -15,6 +15,12 @@ // It's used, believe me ->ignoreErrorsOnPackage('latte/latte', [ErrorType::UNUSED_DEPENDENCY]) + ->ignoreErrorsOnExtensions([ + 'ext-gd', // Used by e.g. Nette\Http\FileUpload::toImage which is used by MichalSpacekCz\Media\VideoThumbnails::validateUpload() + 'ext-pcntl', // Used by latte/latte Latte\Tools\Linter and nette/tester's Tester\Runner\CliTester + 'ext-simplexml', // Used in MichalSpacekCz\Feed\ExportsTest + ], [ErrorType::UNUSED_DEPENDENCY]) + // TestCaseRunner is used only in tests ->ignoreErrorsOnPackageAndPath('nette/tester', __DIR__ . '/src/Test/TestCaseRunner.php', [ErrorType::DEV_DEPENDENCY_IN_PROD]) ;