Skip to content

Commit

Permalink
update composer dependnecy analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 18, 2024
1 parent be9c091 commit 1bad89e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
name: 'Check Active Classes'
run: vendor/bin/class-leak check bin src --ansi --skip-type="\Symplify\PhpConfigPrinter\Contract\NodeVisitor\PrePrintNodeVisitorInterface"

-
name: "Composer Dependency Analyser"
run: vendor/bin/composer-dependency-analyser

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

$config = new Configuration();

return $config
// required for project config parsing
->ignoreErrorsOnPackage('symfony/expression-language', [ErrorType::UNUSED_DEPENDENCY])

// test fixtures
->addPathToExclude(__DIR__ . '/tests/Converter/ConfigFormatConverter/YamlToPhp/Source');
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"require": {
"php": ">=8.2",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.19",
"sebastian/diff": "^5.0",
"symfony/config": "^6.4",
"symfony/console": "^6.4",
Expand All @@ -21,12 +22,12 @@
},
"require-dev": {
"cweagans/composer-patches": "^1.7",
"icanhazstring/composer-unused": "0.8.7",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"rector/rector": "^0.19",
"shipmonk/composer-dependency-analyser": "^1.7",
"symplify/easy-coding-standard": "^12.1",
"symplify/phpstan-extensions": "^11.4",
"symplify/vendor-patches": "^11.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use Prefixed\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
Expand Down

0 comments on commit 1bad89e

Please sign in to comment.