Skip to content

Commit

Permalink
ci: use Composer dependency analyser (#43)
Browse files Browse the repository at this point in the history
- drop maglnet/composer-require-checker
- drop icanhazstring/composer-unused
  • Loading branch information
simPod authored Mar 23, 2024
1 parent 08a8cf2 commit e1582ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
uses: "ramsey/composer-install@v1"

- name: "Run Composer Unused"
run: "vendor/bin/composer-unused"
run: "vendor/bin/composer-dependency-analyser"
11 changes: 11 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

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

$config = new Configuration();

return $config
->ignoreErrorsOnPackage('phpoption/phpoption', [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV]);
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.3",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpunit/phpunit": "^10.3"
"phpunit/phpunit": "^10.3",
"shipmonk/composer-dependency-analyser": "^1.4"
},
"autoload": {
"files": [
Expand Down

0 comments on commit e1582ee

Please sign in to comment.