Skip to content

Commit

Permalink
Add new dep analysis tool
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jan 13, 2025
1 parent d6cf20b commit 6ee2996
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: "composer-require-checker, composer-unused, flex"
tools: "flex"

- name: "Install composer dependencies"
uses: "ramsey/composer-install@v3"
Expand All @@ -96,11 +96,8 @@ jobs:
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run maglnet/composer-require-checker"
run: "composer-require-checker check"

- name: "Run composer-unused/composer-unused"
run: "composer-unused"
- name: "Run dependency analysis"
run: "vendor/bin/composer-dependency-analyser"

static-code-analysis:
name: "Static Code Analysis"
Expand Down
8 changes: 8 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

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

return (new Configuration())
->addPathToExclude(__DIR__ . '/tests')
;
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"setono/consent-contracts": "^1.1",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
Expand All @@ -25,7 +24,8 @@
"phpunit/phpunit": "^9.6",
"psalm/plugin-phpunit": "^0.19",
"psalm/plugin-symfony": "^5.2",
"setono/code-quality-pack": "^2.8.3"
"setono/code-quality-pack": "^2.8.3",
"shipmonk/composer-dependency-analyser": "^1.8"
},
"prefer-stable": true,
"autoload": {
Expand Down

0 comments on commit 6ee2996

Please sign in to comment.