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
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class CodeChecker extends BasicEmitter {
$excludes = array_map(function($item) use ($folder) { $excludes = array_map(function($item) use ($folder) {
return $folder . '/' . $item; return $folder . '/' . $item;
}, ['vendor', '3rdparty', '.git', 'l10n']); }, ['vendor', '3rdparty', '.git', 'l10n', 'tests', 'test']);
$iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS); $iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS);
$iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($folder, $excludes){ $iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($folder, $excludes){