function isPatternExcluded(pattern, patternlab, uikit) {
    let isOmitted;

    // skip patterns that the uikit does not want to render
    isOmitted = uikitExcludePattern(pattern, uikit);
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because its pattern state or tag is excluded within ${uikit.name}.`
      );
      return true;
    }

    // skip marked as hidden patterns
    isOmitted =
      (pattern.isPattern && pattern.hidden) ||
      // TODO: Remove next line when removing support & deprecation waring for underscore prefix hiding
      (pattern.isPattern && pattern.fileName.charAt(0) === '_');
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because it is marked as hidden within it's documentation.`
      );
      return true;
    }

    // this is meant to be a homepage that is not present anywhere else
    isOmitted = pattern.patternPartial === patternlab.config.defaultPattern;
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because it is defined as a defaultPattern.`
      );
      patternlab.defaultPattern = pattern;
      return true;
    }

    // this pattern is contained with a directory documented as hidden (a handy way to hide whole directories from the nav
    isOmitted =
      (pattern.patternGroupData && pattern.patternGroupData.hidden) ||
      (pattern.patternSubGroupData && pattern.patternSubGroupData.hidden) ||
      // TODO: Remove next two lines when removing support & deprecation waring for underscore prefix hiding
      pattern.relPath.charAt(0) === '_' ||
      pattern.relPath.indexOf(path.sep + '_') > -1;
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because its contained within an hidden directory.`
      );
      return true;
    }

    // this pattern is a head or foot pattern
    isOmitted = pattern.isMetaPattern;
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because its a meta pattern.`
      );
      return true;
    }

    // yay, let's include this on the front end
    return isOmitted;
  }
/**
   * Returns whether or not the pattern should be excluded from direct rendering or navigation on the front end
   * @param pattern - the pattern to test for inclusion/exclusion
   * @param patternlab - global data store
   * @param uikit - the current uikit being built
   * @returns boolean - whether or not the pattern is excluded
   */
Returns whether or not the pattern should be excluded from direct rendering or navigation on the front end
@param pattern - the pattern to test for inclusion/exclusion
@param patternlab - global data store
@param uikit - the current uikit being built
@returns boolean - whether or not the pattern is excluded
Returns whether or not the pattern should be excluded from direct rendering or navigation on the front end @param pattern - the pattern to test for inclusion / exclusion @param patternlab - global data store @param uikit - the current uikit being built @returns boolean - whether or not the pattern is excluded
function isPatternExcluded(pattern, patternlab, uikit) {
    let isOmitted;
    isOmitted = uikitExcludePattern(pattern, uikit);
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because its pattern state or tag is excluded within ${uikit.name}.`
      );
      return true;
    }
    isOmitted =
      (pattern.isPattern && pattern.hidden) ||
      (pattern.isPattern && pattern.fileName.charAt(0) === '_');
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because it is marked as hidden within it's documentation.`
      );
      return true;
    }
    isOmitted = pattern.patternPartial === patternlab.config.defaultPattern;
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because it is defined as a defaultPattern.`
      );
      patternlab.defaultPattern = pattern;
      return true;
    }
    isOmitted =
      (pattern.patternGroupData && pattern.patternGroupData.hidden) ||
      (pattern.patternSubGroupData && pattern.patternSubGroupData.hidden) ||
      pattern.relPath.charAt(0) === '_' ||
      pattern.relPath.indexOf(path.sep + '_') > -1;
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because its contained within an hidden directory.`
      );
      return true;
    }
    isOmitted = pattern.isMetaPattern;
    if (isOmitted) {
      logger.info(
        `Omitting ${pattern.patternPartial} from styleguide patterns because its a meta pattern.`
      );
      return true;
    }
    return isOmitted;
  }
function isPatternExcluded ( pattern , patternlab , uikit ) { let isOmitted ; isOmitted = uikitExcludePattern ( pattern , uikit ) ; if ( isOmitted ) { logger . info ( ` ${ pattern . patternPartial } ${ uikit . name } ` ) ; return true ; } isOmitted = ( pattern . isPattern && pattern . hidden ) || ( pattern . isPattern && pattern . fileName . charAt ( 0 ) === '_' ) ; if ( isOmitted ) { logger . info ( ` ${ pattern . patternPartial } ` ) ; return true ; } isOmitted = pattern . patternPartial === patternlab . config . defaultPattern ; if ( isOmitted ) { logger . info ( ` ${ pattern . patternPartial } ` ) ; patternlab . defaultPattern = pattern ; return true ; } isOmitted = ( pattern . patternGroupData && pattern . patternGroupData . hidden ) || ( pattern . patternSubGroupData && pattern . patternSubGroupData . hidden ) || pattern . relPath . charAt ( 0 ) === '_' || pattern . relPath . indexOf ( path . sep + '_' ) > - 1 ; if ( isOmitted ) { logger . info ( ` ${ pattern . patternPartial } ` ) ; return true ; } isOmitted = pattern . isMetaPattern ; if ( isOmitted ) { logger . info ( ` ${ pattern . patternPartial } ` ) ; return true ; } return isOmitted ; }
Returns whether or not the pattern should be excluded from direct rendering or navigation on the front end
 @param pattern - the pattern to test for inclusion/exclusion
 @param patternlab - global data store
 @param uikit - the current uikit being built
 @returns boolean - whether or not the pattern is excluded
Returns whether or not the pattern should be excluded from direct rendering or navigation on the front end @param pattern - the pattern to test for inclusion / exclusion @param patternlab - global data store @param uikit - the current uikit being built @returns boolean - whether or not the pattern is excluded
// skip patterns that the uikit does not want to render // skip marked as hidden patterns // TODO: Remove next line when removing support & deprecation waring for underscore prefix hiding // this is meant to be a homepage that is not present anywhere else // this pattern is contained with a directory documented as hidden (a handy way to hide whole directories from the nav // TODO: Remove next two lines when removing support & deprecation waring for underscore prefix hiding // this pattern is a head or foot pattern // yay, let's include this on the front end