code: function isFileExcluded(file) {
          if (file.name[0] === ".") {
              return true;
          }
  
          var languageID = LanguageManager.getLanguageForPath(file.fullPath).getId();
          if (languageID !== HintUtils.LANGUAGE_ID) {
              return true;
          }
  
          var excludes = preferences.getExcludedFiles();
          if (excludes && excludes.test(file.name)) {
              return true;
          }
  
          if (isFileExcludedInternal(file.fullPath)) {
              return true;
          }
  
          return false;
      }
docs: Test if the file should be excluded from analysis.
  
  @param {!File} file - file to test for exclusion.
  @return {boolean} true if excluded, false otherwise.