Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 8 | ||
Bugs | 3 | Features | 0 |
1 | <?php |
||
25 | 1 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
26 | { |
||
27 | 1 | $path = __DIR__ . '/../../baseline.php'; |
|
28 | |||
29 | 1 | $storage = new TreePhpBaselineStorage(); |
|
30 | 1 | $storage->init($path); |
|
31 | |||
32 | 1 | $configDto = $this->getConfigDto(); |
|
33 | |||
34 | 1 | $files = $this->getFilesFromDirectories($configDto->directories); |
|
35 | 1 | $analyzerFactory = new AnalyzerFactory(); |
|
36 | |||
37 | 1 | $analyzer = $analyzerFactory->getAnalyzer($configDto, $output, $storage); |
|
38 | 1 | $outputDTO = $analyzer->analyze($files); |
|
39 | |||
40 | 1 | $storage->setComments($outputDTO->comments); |
|
41 | |||
42 | 1 | $output->writeln('<info>Baseline generated successfully!</info>'); |
|
43 | |||
44 | 1 | return SymfonyCommand::SUCCESS; |
|
45 | } |
||
47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths