Skip to content

Commit

Permalink
Ignore errors because those extensions are used for something
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Nov 22, 2024
1 parent 973d7c2 commit 332ca11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])
;

0 comments on commit 332ca11

Please sign in to comment.