Merge pull request #15838 from owncloud/code-checker-to-ignore-tests
Ignore test folders when checking the code for compliance
This commit is contained in:
commit
8cefc657a1
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class CodeChecker extends BasicEmitter {
|
|||
|
||||
$excludes = array_map(function($item) use ($folder) {
|
||||
return $folder . '/' . $item;
|
||||
}, ['vendor', '3rdparty', '.git', 'l10n']);
|
||||
}, ['vendor', '3rdparty', '.git', 'l10n', 'tests', 'test']);
|
||||
|
||||
$iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS);
|
||||
$iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($folder, $excludes){
|
||||
|
|
Loading…
Reference in a new issue