Prepend the build path to ignored directories in PhpParallelLint.php.

Closes #710
This commit is contained in:
Guillaume Perréal 2014-12-17 15:41:49 +01:00 committed by Dan Cryer
parent 0beb77113a
commit a2e97c69ac

View file

@ -105,10 +105,11 @@ class PhpParallelLint implements \PHPCI\Plugin
*/
protected function getFlags()
{
$ignore = '';
if (count($this->ignore)) {
$ignore = ' --exclude ' . implode(' --exclude ', $this->ignore);
$ignoreFlags = array();
foreach ($this->ignore as $ignoreDir) {
$ignoreFlags[] = '--exclude "' . $this->phpci->buildPath . $ignoreDir . '"';
}
$ignore = implode(' ', $ignoreFlags);
return array($ignore);
}