Skip to content

Commit 207b99d

Browse files
author
Jeroen de Graaf
committed
Ignore incorrect erros of prod dependencies only used in dev
1 parent bada6ff commit 207b99d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

composer-dependency-analyser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
$config->addPathToScan(__DIR__ . '/config', isDev: true);
1212
$config->addPathToScan(__DIR__ . '/public', isDev: false);
1313

14+
$config->ignoreErrorsOnPackage('doctrine/doctrine-bundle', [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV]);
15+
$config->ignoreErrorsOnPackage('doctrine/doctrine-migrations-bundle', [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV]);
16+
$config->ignoreErrorsOnPackage('gember/event-sourcing-symfony-bundle', [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV]);
17+
1418
$config->ignoreErrorsOnPackage('doctrine/dbal', [ErrorType::UNUSED_DEPENDENCY]);
1519
$config->ignoreErrorsOnPackage('doctrine/orm', [ErrorType::UNUSED_DEPENDENCY]);
1620
$config->ignoreErrorsOnPackage('symfony/dotenv', [ErrorType::UNUSED_DEPENDENCY]);

0 commit comments

Comments
 (0)