Total Complexity | 5 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
21 | final class SourceCodeFinder implements CodeFinder |
||
22 | { |
||
23 | public static function fromConfiguration(CodeFinderConfiguration $configuration): SourceCodeFinder |
||
24 | { |
||
25 | $finder = new Finder(); |
||
26 | if (! $configuration->recursive()) { |
||
27 | $finder->depth(0); |
||
28 | } |
||
29 | return new self($finder); |
||
30 | } |
||
31 | |||
32 | private function __construct(private Finder $finder) |
||
34 | } |
||
35 | |||
36 | public function find(CodebaseDirectory $directory): SourceCode |
||
46 |
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