src/JSUtils/ScopeManager.js
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;
    }
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;
    }
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 ; }
Test if the file should be excluded from analysis.

@param {!File} file - file to test for exclusion.
@return {boolean} true if excluded, false otherwise.
Test if the file should be excluded from analysis .