From 77847df1db3023ca26cf9e2385588b859d511be6 Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:25:47 +0400 Subject: [PATCH] General configuration. --- composer-dependency-analyser.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 composer-dependency-analyser.php diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php new file mode 100644 index 000000000..f0220f76b --- /dev/null +++ b/composer-dependency-analyser.php @@ -0,0 +1,18 @@ +enableAnalysisOfUnusedDevDependencies() + ->disableReportingUnmatchedIgnores() + ->ignoreUnknownClasses([ + Example::class, + ]) + ->ignoreErrorsOnPackage('symfony/polyfill-php83', [ErrorType::UNUSED_DEPENDENCY]) + ->ignoreErrorsOnPackage('bamarni/composer-bin-plugin', [ErrorType::UNUSED_DEPENDENCY]) + ->ignoreErrorsOnPackage('orchestra/testbench', [ErrorType::UNUSED_DEPENDENCY]) + ->ignoreErrorsOnPackage('orchestra/testbench-core', [ErrorType::SHADOW_DEPENDENCY]) + ->ignoreErrorsOnPackage('phpstan/phpstan', [ErrorType::SHADOW_DEPENDENCY]) + ->ignoreErrorsOnPackage('laravel/scout', [ErrorType::DEV_DEPENDENCY_IN_PROD]);