forked from wallabag/wallabag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer-dependency-analyser.php
74 lines (71 loc) · 2.41 KB
/
composer-dependency-analyser.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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)
->addPathToScan(__DIR__ . '/fixtures', true)
->addPathToScan(__DIR__ . '/tests', true)
->ignoreErrorsOnPackages([
'doctrine/common',
'egulias/email-validator',
'ergebnis/composer-normalize',
'friendsofphp/php-cs-fixer',
'friendsoftwig/twigcs',
'incenteev/composer-parameter-handler',
'j0k3r/graby-site-config',
'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',
'monolog/monolog',
'symfony/filesystem',
'symfony/http-client',
], [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV])
->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])
;