Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
composer-dependency-analyser: fix dependency issues (#5777)
* composer-dependency-analyser: fix dependency issues * Revert react/promise and nette/robot-loader changes * Remove symfony/yaml, not a shadow dep anymore
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration; | ||
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType; | ||
|
||
$config = new Configuration(); | ||
|
||
return $config | ||
->addPathToScan(__DIR__ . '/build/config', false) | ||
->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::DEV_DEPENDENCY_IN_PROD]) // prepared test tooling | ||
->ignoreErrorsOnPackage('react/promise', [ErrorType::UNUSED_DEPENDENCY]) // pinned v2.x version | ||
->ignoreErrorsOnPackage('nette/robot-loader', [ErrorType::DEV_DEPENDENCY_IN_PROD]) // https://github.com/rectorphp/rector-src/pull/5777#discussion_r1541304301 | ||
->ignoreErrorsOnPaths([ | ||
__DIR__ . '/stubs', | ||
__DIR__ . '/tests', | ||
__DIR__ . '/rules-tests', | ||
], [ErrorType::UNKNOWN_CLASS]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters