build-system/tasks/check-rules.js
function hasAnyTerms(file) {
  var pathname = file.path;
  var hasTerms = false;
  var hasSrcInclusiveTerms = false;

  hasTerms = matchTerms(file, forbiddenTerms);
  if (!isTestFile(file)) {
    hasSrcInclusiveTerms = matchTerms(file, forbiddenTermsSrcInclusive);
  }

  return hasTerms || hasSrcInclusiveTerms;
}
function hasAnyTerms(file) {
  var pathname = file.path;
  var hasTerms = false;
  var hasSrcInclusiveTerms = false;

  hasTerms = matchTerms(file, forbiddenTerms);
  if (!isTestFile(file)) {
    hasSrcInclusiveTerms = matchTerms(file, forbiddenTermsSrcInclusive);
  }

  return hasTerms || hasSrcInclusiveTerms;
}
function hasAnyTerms ( file ) { var pathname = file . path ; var hasTerms = false ; var hasSrcInclusiveTerms = false ; hasTerms = matchTerms ( file , forbiddenTerms ) ; if ( ! isTestFile ( file ) ) { hasSrcInclusiveTerms = matchTerms ( file , forbiddenTermsSrcInclusive ) ; } return hasTerms || hasSrcInclusiveTerms ; }
Test if a file's contents match any of the
forbidden terms

@param {!File} file file is a vinyl file object
@return {boolean} true if any of the terms match the file content,
false otherwise
Test if a file s contents match any of the forbidden terms