Skip to content

Commit

Permalink
Replace maglnet/composer-require-checker with `shipmonk/composer-de…
Browse files Browse the repository at this point in the history
…pendency-analyser`
  • Loading branch information
kubawerlos committed Feb 1, 2025
1 parent 3da87fe commit 5e79097
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 91 deletions.
20 changes: 20 additions & 0 deletions .dev-tools/composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php declare(strict_types=1);

/*
* This file is part of composer-smaller-lock.
*
* (c) 2021 Kuba Werłos
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

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

$config = new Configuration();

return $config
->addPathToScan(__DIR__ . '/../src', false)
->addPathToExclude(__DIR__ . '/../tests')
->ignoreErrorsOnPackage('composer/composer', [ErrorType::DEV_DEPENDENCY_IN_PROD]);
15 changes: 0 additions & 15 deletions .dev-tools/composer-require-checker.json

This file was deleted.

4 changes: 2 additions & 2 deletions .dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"ergebnis/composer-normalize": "^2.43.0",
"kubawerlos/composer-smaller-lock": "^1.0.1",
"kubawerlos/php-cs-fixer-config": "^3.27",
"maglnet/composer-require-checker": "^4.11",
"mi-schi/phpmd-extension": "^4.3",
"phpmd/phpmd": "^2.15",
"phpstan/extension-installer": "^1.4.1",
"phpstan/phpstan": "^1.11.10",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan-strict-rules": "^1.6.0",
"shipmonk/composer-dependency-analyser": "^1.8",
"squizlabs/php_codesniffer": "^3.10.2",
"vimeo/psalm": "^5.25.0"
},
Expand All @@ -29,7 +29,7 @@
"@composer validate --strict --working-dir=..",
"@composer normalize --dry-run ../composer.json",
"@composer normalize --dry-run",
"composer-require-checker --config-file=composer-require-checker.json check ../composer.json",
"composer-dependency-analyser --composer-json=../composer.json",
"phpcs",
"php-cs-fixer fix --ansi --diff --dry-run --verbose",
"phpmd ../src text phpmd.xml",
Expand Down
107 changes: 33 additions & 74 deletions .dev-tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e79097

Please sign in to comment.