diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6f6a6b7..a86a374 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -99,8 +99,8 @@ jobs:
name: 'Check coding standard'
run: 'bin/phing create-dirs cs || cat build/log/phpcs-checkstyle.xml | cs2pr'
- composer-require-checker:
- name: 'Composer require check'
+ composer-dependencies:
+ name: 'Composer dependencies'
needs: 'lint'
runs-on: 'ubuntu-latest'
@@ -123,8 +123,8 @@ jobs:
with:
dependency-versions: 'highest'
-
- name: 'Check missing Composer requires'
- run: 'bin/phing composer-require-checker'
+ name: 'Analyze Composer dependencies'
+ run: 'bin/phing composer-dependencies'
tests:
name: 'Tests - PHP ${{ matrix.php-version }}, ${{ matrix.composer-dependencies }} dependencies'
diff --git a/build.xml b/build.xml
index 9e4b7e5..9cada2e 100644
--- a/build.xml
+++ b/build.xml
@@ -10,7 +10,8 @@
-
+
+
@@ -29,7 +30,7 @@
phplint,
cs,
tests,
- composer-require-checker
+ composer-dependencies
"/>
@@ -43,13 +44,15 @@
-
+
+ >
+
+
@@ -82,6 +85,7 @@
+
diff --git a/build/composer-dependency-analyser.config.php b/build/composer-dependency-analyser.config.php
new file mode 100644
index 0000000..6404370
--- /dev/null
+++ b/build/composer-dependency-analyser.config.php
@@ -0,0 +1,31 @@
+enableAnalysisOfUnusedDevDependencies();
+$config = $config->addPathToScan(__DIR__, true);
+
+// "interface" packages
+$config = $config->ignoreErrorsOnPackages([
+ 'consistence/class-finder-implementation',
+], [ErrorType::UNUSED_DEPENDENCY]);
+
+// opt-in Symfony functionality
+$config = $config->ignoreErrorsOnPackages([
+ 'symfony/yaml',
+], [ErrorType::UNUSED_DEPENDENCY]);
+
+// tools
+$config = $config->ignoreErrorsOnPackages([
+ 'consistence/coding-standard',
+ 'phing/phing',
+ 'php-parallel-lint/php-console-highlighter',
+ 'php-parallel-lint/php-parallel-lint',
+], [ErrorType::UNUSED_DEPENDENCY]);
+
+return $config;
diff --git a/composer.json b/composer.json
index d182be3..e2db8d3 100644
--- a/composer.json
+++ b/composer.json
@@ -24,14 +24,13 @@
"require-dev": {
"consistence/coding-standard": "3.10.1",
"consistence/consistence-robot-loader-class-finder": "~0.2",
- "jakub-onderka/php-console-highlighter": "0.4",
- "jakub-onderka/php-parallel-lint": "1.0",
- "maglnet/composer-require-checker": "2.0",
"matthiasnoback/symfony-dependency-injection-test": "4.2.1",
"php-parallel-lint/php-console-highlighter": "1.0",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phing/phing": "2.17.2",
- "phpunit/phpunit": "8.5.25"
+ "phpunit/phpunit": "8.5.25",
+ "nette/robot-loader": "^3.0",
+ "shipmonk/composer-dependency-analyser": "1.8.1"
},
"autoload": {
"psr-4": {