Fixing exclude functionality in PHPMD
This commit is contained in:
parent
11932e4b9c
commit
953a209d6d
|
@ -29,11 +29,6 @@ class PhpMessDetector implements \PHPCI\Plugin
|
|||
$ignore = '';
|
||||
|
||||
if (count($this->phpci->ignore)) {
|
||||
$map = function ($item) {
|
||||
return substr($item, -1) == '/' ? $item . '*' : $item . '/*';
|
||||
};
|
||||
$ignore = array_map($map, $this->phpci->ignore);
|
||||
|
||||
$ignore = ' --exclude ' . implode(',', $ignore);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue