Fixes a issue with a double slash in the path meaning ignore doesn't work
This commit is contained in:
parent
b24b01ec65
commit
148e4414fb
|
@ -116,8 +116,7 @@ class Lint implements PHPCI\Plugin
|
|||
continue;
|
||||
}
|
||||
|
||||
$itemPath = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
||||
$itemPath .= ltrim($item->getFilename(), DIRECTORY_SEPARATOR);
|
||||
$itemPath = $path . $item->getFilename();
|
||||
|
||||
if (in_array($itemPath, $this->ignore)) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue