function drush_filename_blacklist

8.0.x command.inc drush_filename_blacklist()
6.x command.inc drush_filename_blacklist()
7.x command.inc drush_filename_blacklist()
4.x command.inc drush_filename_blacklist()
5.x command.inc drush_filename_blacklist()
master command.inc drush_filename_blacklist()

Substrings to ignore during commandfile and site alias searching.

2 calls to drush_filename_blacklist()
_drush_add_commandfiles in includes/command.inc
_drush_sitealias_find_alias_files in includes/sitealias.inc
Function to find all alias files that might contain aliases that match the requested alias name.

File

includes/command.inc, line 1578
The drush command engine.

Code

function drush_filename_blacklist() {
  $blacklist = array(
    '.',
    '..',
    'drush_make',
    'examples',
    'tests',
    'disabled',
    'gitcache',
    'cache',
  );
  for ($v = 4; $v <= (DRUSH_MAJOR_VERSION) + 3; ++$v) {
    if ($v != DRUSH_MAJOR_VERSION) {
      $blacklist[] = 'drush' . $v;
    }
  }
  $blacklist = array_merge($blacklist, drush_get_option_list('exclude'));
  return $blacklist;
}