From ed467626156d9449f170045ea4eda059f217051e Mon Sep 17 00:00:00 2001 From: Alexandr Date: Thu, 21 Jun 2018 11:08:42 +0300 Subject: [PATCH] Add `exclude_analyse` support for RobotLoader --- src/Command/AnalyseCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Command/AnalyseCommand.php b/src/Command/AnalyseCommand.php index 3a866201d3..bf0629a277 100644 --- a/src/Command/AnalyseCommand.php +++ b/src/Command/AnalyseCommand.php @@ -213,6 +213,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int $robotLoader->addDirectory($fileHelper->normalizePath($directory)); } + foreach ($container->parameters['excludes_analyse'] as $directory) { + $robotLoader->excludeDirectory($fileHelper->normalizePath($directory)); + } + $robotLoader->register(); }