wallabag/composer-dependency-analyse...

75 lines
2.4 KiB
PHP
Raw Normal View History

2024-03-30 00:38:37 +01:00
<?php
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
$config = new Configuration();
return $config
->disableComposerAutoloadPathScan()
->enableAnalysisOfUnusedDevDependencies()
->addPathToScan(__DIR__ . '/app', false)
->addPathToScan(__DIR__ . '/migrations', false)
->addPathToScan(__DIR__ . '/src', false)
->addPathToScan(__DIR__ . '/web', false)
2024-03-30 01:24:38 +01:00
->addPathToScan(__DIR__ . '/fixtures', true)
2024-03-30 00:38:37 +01:00
->addPathToScan(__DIR__ . '/tests', true)
->ignoreErrorsOnPackages([
'doctrine/common',
'egulias/email-validator',
'ergebnis/composer-normalize',
'friendsofphp/php-cs-fixer',
'friendsoftwig/twigcs',
'incenteev/composer-parameter-handler',
2024-09-06 09:24:09 +02:00
'j0k3r/graby-site-config',
2024-03-30 00:38:37 +01:00
'laminas/laminas-code',
'lcobucci/jwt',
'mgargano/simplehtmldom',
'mnapoli/piwik-twig-extension',
'ocramius/proxy-manager',
'pagerfanta/twig',
'php-http/client-common',
'php-http/httplug',
'php-http/mock-client',
'phpstan/extension-installer',
'phpstan/phpstan',
'phpstan/phpstan-doctrine',
'phpstan/phpstan-phpunit',
'phpstan/phpstan-symfony',
'psr/http-client',
'psr/http-factory',
'psr/http-message',
'rulerz-php/doctrine-orm',
'scheb/2fa-qr-code',
'scheb/2fa-trusted-device',
'shipmonk/composer-dependency-analyser',
'symfony/asset',
'symfony/browser-kit',
'symfony/css-selector',
'symfony/doctrine-bridge',
'symfony/google-mailer',
'symfony/intl',
'symfony/phpunit-bridge',
'symfony/polyfill-php80',
'symfony/polyfill-php81',
'symfony/proxy-manager-bridge',
'symfony/templating',
'symfony/var-dumper',
'twig/string-extra',
], [ErrorType::UNUSED_DEPENDENCY])
->ignoreErrorsOnPackages([
'guzzlehttp/streams',
2024-03-30 01:35:04 +01:00
'monolog/monolog',
'symfony/filesystem',
2024-03-30 01:47:14 +01:00
'symfony/http-client',
], [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV])
2024-08-17 20:05:51 +02:00
->ignoreErrorsOnPackages([
'dama/doctrine-test-bundle',
'doctrine/doctrine-fixtures-bundle',
'symfony/debug-bundle',
'symfony/maker-bundle',
'symfony/web-profiler-bundle',
'symfony/web-server-bundle',
], [ErrorType::DEV_DEPENDENCY_IN_PROD])
2024-03-30 00:38:37 +01:00
;