Skip to content

Commit

Permalink
feat: add composer-dependency-analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelreyrol committed Feb 2, 2024
1 parent 613f1a3 commit 2a5520a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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

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

$config = new Configuration();

$composer = json_decode(file_get_contents(__DIR__.'/composer.json'), true);

return $config
->ignoreErrorsOnPackages(array_keys($composer['suggest']), [
ErrorType::SHADOW_DEPENDENCY,
ErrorType::DEV_DEPENDENCY_IN_PROD,
])
;
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"phpunit/phpunit": "^10.5",
"pyrech/composer-changelogs": "^2.1",
"roave/security-advisories": "dev-master",
"shipmonk/composer-dependency-analyser": "^1.0",
"symfony/cache": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
Expand Down

0 comments on commit 2a5520a

Please sign in to comment.