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
|
@ -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){
|
||||||
|
|
Loading…
Reference in New Issue