Skip to content

Commit

Permalink
Add composer-dependency-analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Feb 15, 2024
1 parent c67b7d7 commit cdc28cd
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 4 deletions.
9 changes: 9 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php declare(strict_types = 1);

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

$config = new Configuration();

return $config
->ignoreErrorsOnPackage('phpstan/phpdoc-parser', [ErrorType::SHADOW_DEPENDENCY]); // it gets autoloaded from within the PHPStan.phar when running PHPStan
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"phpstan/phpstan-phpunit": "^1.1.1",
"phpstan/phpstan-strict-rules": "^1.2.3",
"phpunit/phpunit": "^9.5.20",
"shipmonk/composer-dependency-analyser": "dev-master",
"shipmonk/name-collision-detector": "^2.0.0",
"slevomat/coding-standard": "^8.0.1"
},
Expand Down Expand Up @@ -59,12 +60,14 @@
"@check:cs",
"@check:types",
"@check:tests",
"@check:dependencies",
"@check:collisions",
"@check:readme"
],
"check:collisions": "detect-collisions src tests",
"check:composer": "composer normalize --dry-run --no-check-lock --no-update-lock",
"check:cs": "phpcs",
"check:dependencies": "composer-dependency-analyser",
"check:ec": "ec src tests",
"check:readme": "php bin/verify-readme-default-config.php",
"check:tests": "phpunit -vvv tests",
Expand Down
87 changes: 83 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cdc28cd

Please sign in to comment.