docs: function matches(file, patternList, excludePatterList, options) {
    options = _.sanitize(options, {minimatch: false});
    let shouldInclude = false;
    let shouldExclude = false;
    const matcher = options.minimatch ? (f, pattern) => minimatch(f, pattern, {dot: true, matchBase: true}) : globMatch;
  
    if (!_.isEmpty(patternList)) {
      shouldInclude = _.some(_ensureArray(patternList), pattern => matcher(file, pattern));
    }
    if (!_.isEmpty(excludePatterList)) {
      shouldExclude = _.some(_ensureArray(excludePatterList), pattern => matcher(file, pattern));
    }
    return shouldInclude && !shouldExclude;
  }