[ticket/331] Exclude vendor and develop folder from spellcheck

This commit is contained in:
Marc Alexander
2014-08-17 17:21:32 +02:00
parent cf4f2209ff
commit fa6f292365

View File

@@ -20,7 +20,7 @@ foreach ($iterator as $file_info)
{ {
$file_path = $file_info->getPath(); $file_path = $file_info->getPath();
$file = $file_info->getFilename(); $file = $file_info->getFilename();
if ($file === 'spellchecker.php') if ($file === 'spellchecker.php' || strpos(realpath($file_path), 'board3/portal/develop') !== false || strpos(realpath($file_path), 'board3/portal/vendor') !== false)
{ {
continue; continue;
} }
@@ -111,3 +111,7 @@ if (strlen($output) > 0)
{ {
exit(1); exit(1);
} }
else
{
echo("Done. Tests passed." . ((PHP_SAPI == 'cli') ? "\n" : '<br />'));
}