Skip to content

Commit 2e3241e

Browse files
committed
Setup config for dependency-analyser
1 parent 43316b9 commit 2e3241e

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

composer-dependency-analyser.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
6+
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
7+
8+
$config = new Configuration();
9+
10+
$config->addPathToScan(__DIR__ . '/bin', isDev: false);
11+
$config->addPathToScan(__DIR__ . '/config', isDev: true);
12+
$config->addPathToScan(__DIR__ . '/public', isDev: false);
13+
14+
$config->ignoreErrorsOnPackage('symfony/console', [ErrorType::UNUSED_DEPENDENCY]);
15+
$config->ignoreErrorsOnPackage('symfony/dotenv', [ErrorType::UNUSED_DEPENDENCY]);
16+
$config->ignoreErrorsOnPackage('symfony/flex', [ErrorType::UNUSED_DEPENDENCY]);
17+
$config->ignoreErrorsOnPackage('symfony/runtime', [ErrorType::UNUSED_DEPENDENCY]);
18+
$config->ignoreErrorsOnPackage('symfony/yaml', [ErrorType::UNUSED_DEPENDENCY]);
19+
20+
$config->ignoreErrorsOnExtension('ext-ctype', [ErrorType::UNUSED_DEPENDENCY]);
21+
$config->ignoreErrorsOnExtension('ext-iconv', [ErrorType::UNUSED_DEPENDENCY]);
22+
23+
return $config;

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"symfony/dotenv": "~7.2.0",
2525
"symfony/flex": "^2.6",
2626
"symfony/framework-bundle": "~7.2.5",
27+
"symfony/http-kernel": "7.2.*",
2728
"symfony/runtime": "~7.2.3",
2829
"symfony/yaml": "~7.2.6"
2930
},

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)