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:
Joas Schilling 2015-04-24 14:52:40 +02:00
commit 8cefc657a1

View file

@ -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){