Skip to content

Commit

Permalink
switch to dependency analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklog committed Oct 26, 2024
1 parent ac20c36 commit 4446f0c
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 997 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
dependency-versions: ${{ matrix.php-versions }}
composer-options: --prefer-dist --no-scripts

- run: composer crc
- run: composer unuse
- run: Composer Dependency Analyser
- run: composer cda

- name: CS Check
run: composer cs-check
Expand Down
12 changes: 12 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

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

$config = new Configuration();

return $config
// Adjusting scanned paths
->addPathToScan(__DIR__ . '/tests', true);
19 changes: 0 additions & 19 deletions composer-require-checker.json

This file was deleted.

9 changes: 0 additions & 9 deletions composer-unused.php

This file was deleted.

11 changes: 4 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"symfony/event-dispatcher-contracts": "^3.5",

"doctrine/doctrine-bundle": "^2.13",
"doctrine/event-manager": "^2.0",
"doctrine/collections": "^2.2",
"doctrine/persistence": "^3.3",
"doctrine/orm": "^2.20 || ^3.3",
Expand All @@ -60,11 +59,10 @@
"ramsey/collection": "^2.0"
},
"require-dev":{
"icanhazstring/composer-unused": "^0.8",
"shipmonk/composer-dependency-analyser": "^1.7",
"doctrine/coding-standard": "^12.0",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.10",
"maglnet/composer-require-checker": "^4.13",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4",
Expand All @@ -87,18 +85,17 @@
},
"scripts": {
"check": [
"@unuse",
"@cda",
"@cs-check",
"@phpstan",
"@phpunit"
],
"crc": "composer-require-checker --config-file=./composer-require-checker.json --ansi",
"cda": "vendor/bin/composer-dependency-analyser --config=./composer-dependency-analyser.php",
"phpstan": "phpstan analyse --memory-limit=-1 --ansi",
"phpstan-update-baseline": "phpstan analyse --ansi --generate-baseline phpstan-baseline.neon",
"phpunit": "phpunit --colors=always",
"cs-check": "phpcs -s",
"cs-fix": "phpcbf",
"unuse": "vendor/bin/composer-unused"
"cs-fix": "phpcbf"
},
"extra": {
"branch-alias": {
Expand Down
Loading

0 comments on commit 4446f0c

Please sign in to comment.