From 1462d168f7f32f7d7ccaea8341f2f70a3792850f Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Tue, 19 Mar 2024 16:45:20 +0100 Subject: [PATCH 1/3] composer-dependency-analyser: improve config, update --- composer-dependency-analyser.php | 2 +- composer.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php index 1c85d344..307f6be3 100644 --- a/composer-dependency-analyser.php +++ b/composer-dependency-analyser.php @@ -6,5 +6,5 @@ $config = new Configuration(); return $config - ->ignoreErrorsOnPackage('composer/xdebug-handler', [ErrorType::UNUSED_DEPENDENCY]) // needed for e2e tests, no direct usage in code + ->addPathToScan(__DIR__ . '/deptrac.php', isDev: false) ->ignoreErrorsOnPath(__DIR__ . '/tests', [ErrorType::UNKNOWN_CLASS]); // keep ability to test invalid symbols diff --git a/composer.lock b/composer.lock index a95e28e5..a509a125 100644 --- a/composer.lock +++ b/composer.lock @@ -5042,16 +5042,16 @@ }, { "name": "shipmonk/composer-dependency-analyser", - "version": "1.2.1", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/shipmonk-rnd/composer-dependency-analyser.git", - "reference": "d44a0ec7d3b66fd73d5c32981c81569c9b85bddc" + "reference": "b67036e64429bcddbbb65ba218f031d58ffda02e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/shipmonk-rnd/composer-dependency-analyser/zipball/d44a0ec7d3b66fd73d5c32981c81569c9b85bddc", - "reference": "d44a0ec7d3b66fd73d5c32981c81569c9b85bddc", + "url": "https://api.github.com/repos/shipmonk-rnd/composer-dependency-analyser/zipball/b67036e64429bcddbbb65ba218f031d58ffda02e", + "reference": "b67036e64429bcddbbb65ba218f031d58ffda02e", "shasum": "" }, "require": { @@ -5098,9 +5098,9 @@ ], "support": { "issues": "https://github.com/shipmonk-rnd/composer-dependency-analyser/issues", - "source": "https://github.com/shipmonk-rnd/composer-dependency-analyser/tree/1.2.1" + "source": "https://github.com/shipmonk-rnd/composer-dependency-analyser/tree/1.3.1" }, - "time": "2024-02-16T10:44:07+00:00" + "time": "2024-03-05T20:19:03+00:00" }, { "name": "spatie/array-to-xml", From 2862eb122969e9c83e9d2896b416833acb542b5c Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Tue, 19 Mar 2024 16:47:27 +0100 Subject: [PATCH 2/3] Fix filepath --- composer-dependency-analyser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php index 307f6be3..35a3efdf 100644 --- a/composer-dependency-analyser.php +++ b/composer-dependency-analyser.php @@ -6,5 +6,5 @@ $config = new Configuration(); return $config - ->addPathToScan(__DIR__ . '/deptrac.php', isDev: false) + ->addPathToScan(__DIR__ . '/bin/deptrac', isDev: false) ->ignoreErrorsOnPath(__DIR__ . '/tests', [ErrorType::UNKNOWN_CLASS]); // keep ability to test invalid symbols From 45e0d7b348dc052a950ca32bd00a4f1a725e267b Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Tue, 19 Mar 2024 17:12:46 +0100 Subject: [PATCH 3/3] 1.4.0 --- composer.lock | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/composer.lock b/composer.lock index a509a125..fbbb946d 100644 --- a/composer.lock +++ b/composer.lock @@ -5042,26 +5042,27 @@ }, { "name": "shipmonk/composer-dependency-analyser", - "version": "1.3.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/shipmonk-rnd/composer-dependency-analyser.git", - "reference": "b67036e64429bcddbbb65ba218f031d58ffda02e" + "reference": "da787b1ec7e02e618f080e65f944a72a47a4696c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/shipmonk-rnd/composer-dependency-analyser/zipball/b67036e64429bcddbbb65ba218f031d58ffda02e", - "reference": "b67036e64429bcddbbb65ba218f031d58ffda02e", + "url": "https://api.github.com/repos/shipmonk-rnd/composer-dependency-analyser/zipball/da787b1ec7e02e618f080e65f944a72a47a4696c", + "reference": "da787b1ec7e02e618f080e65f944a72a47a4696c", "shasum": "" }, "require": { "ext-json": "*", + "ext-tokenizer": "*", "php": "^7.2 || ^8.0" }, "require-dev": { "editorconfig-checker/editorconfig-checker": "^10.3.0", "ergebnis/composer-normalize": "^2.19", - "phpstan/phpstan": "^1.10.30", + "phpstan/phpstan": "^1.10.63", "phpstan/phpstan-phpunit": "^1.1.1", "phpstan/phpstan-strict-rules": "^1.2.3", "phpunit/phpunit": "^8.5.28 || ^9.5.20", @@ -5098,9 +5099,9 @@ ], "support": { "issues": "https://github.com/shipmonk-rnd/composer-dependency-analyser/issues", - "source": "https://github.com/shipmonk-rnd/composer-dependency-analyser/tree/1.3.1" + "source": "https://github.com/shipmonk-rnd/composer-dependency-analyser/tree/1.4.0" }, - "time": "2024-03-05T20:19:03+00:00" + "time": "2024-03-19T15:39:35+00:00" }, { "name": "spatie/array-to-xml",