Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit e7585d1

Browse files
author
Andrey Helldar
committed
Added directories excluded from search
1 parent 33fb1f9 commit e7585d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Services/Finder.php

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ protected function search($path): void
4545
protected function find($path): SymfonyFinder
4646
{
4747
return $this->instance->in($path)->files()
48+
->exclude(['vendor', 'node_modules', '.idea', '.git', '.github', 'tests'])
4849
->name(['*.php', '*.json', '*.yml', '*.yaml', '*.twig'])
4950
->contains(['env(', 'getenv(']);
5051
}

0 commit comments

Comments
 (0)