[ticket/331] Exclude vendor and develop folder from spellcheck
This commit is contained in:
@@ -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 />'));
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user