src/language/CodeInspection.js
function updatePanelTitleAndStatusBar(numProblems, providersReportingProblems, aborted) {
        var message, tooltip;

        if (providersReportingProblems.length === 1) {
            // don't show a header if there is only one provider available for this file type
            $problemsPanelTable.find(".inspector-section").hide();
            $problemsPanelTable.find("tr").removeClass("forced-hidden");

            if (numProblems === 1 && !aborted) {
                message = StringUtils.format(Strings.SINGLE_ERROR, providersReportingProblems[0].name);
            } else {
                if (aborted) {
                    numProblems += "+";
                }

                message = StringUtils.format(Strings.MULTIPLE_ERRORS, providersReportingProblems[0].name, numProblems);
            }
        } else if (providersReportingProblems.length > 1) {
            $problemsPanelTable.find(".inspector-section").show();

            if (aborted) {
                numProblems += "+";
            }

            message = StringUtils.format(Strings.ERRORS_PANEL_TITLE_MULTIPLE, numProblems);
        } else {
            return;
        }

        $problemsPanel.find(".title").text(message);
        tooltip = StringUtils.format(Strings.STATUSBAR_CODE_INSPECTION_TOOLTIP, message);
        StatusBar.updateIndicator(INDICATOR_ID, true, "inspection-errors", tooltip);
    }
function updatePanelTitleAndStatusBar(numProblems, providersReportingProblems, aborted) {
        var message, tooltip;

        if (providersReportingProblems.length === 1) {
            // don't show a header if there is only one provider available for this file type
            $problemsPanelTable.find(".inspector-section").hide();
            $problemsPanelTable.find("tr").removeClass("forced-hidden");

            if (numProblems === 1 && !aborted) {
                message = StringUtils.format(Strings.SINGLE_ERROR, providersReportingProblems[0].name);
            } else {
                if (aborted) {
                    numProblems += "+";
                }

                message = StringUtils.format(Strings.MULTIPLE_ERRORS, providersReportingProblems[0].name, numProblems);
            }
        } else if (providersReportingProblems.length > 1) {
            $problemsPanelTable.find(".inspector-section").show();

            if (aborted) {
                numProblems += "+";
            }

            message = StringUtils.format(Strings.ERRORS_PANEL_TITLE_MULTIPLE, numProblems);
        } else {
            return;
        }

        $problemsPanel.find(".title").text(message);
        tooltip = StringUtils.format(Strings.STATUSBAR_CODE_INSPECTION_TOOLTIP, message);
        StatusBar.updateIndicator(INDICATOR_ID, true, "inspection-errors", tooltip);
    }
function updatePanelTitleAndStatusBar ( numProblems , providersReportingProblems , aborted ) { var message , tooltip ; if ( providersReportingProblems . length === 1 ) { // don't show a header if there is only one provider available for this file type $problemsPanelTable . find ( ".inspector-section" ) . hide ( ) ; $problemsPanelTable . find ( "tr" ) . removeClass ( "forced-hidden" ) ; if ( numProblems === 1 && ! aborted ) { message = StringUtils . format ( Strings . SINGLE_ERROR , providersReportingProblems [ 0 ] . name ) ; } else { if ( aborted ) { numProblems += "+" ; } message = StringUtils . format ( Strings . MULTIPLE_ERRORS , providersReportingProblems [ 0 ] . name , numProblems ) ; } } else if ( providersReportingProblems . length > 1 ) { $problemsPanelTable . find ( ".inspector-section" ) . show ( ) ; if ( aborted ) { numProblems += "+" ; } message = StringUtils . format ( Strings . ERRORS_PANEL_TITLE_MULTIPLE , numProblems ) ; } else { return ; } $problemsPanel . find ( ".title" ) . text ( message ) ; tooltip = StringUtils . format ( Strings . STATUSBAR_CODE_INSPECTION_TOOLTIP , message ) ; StatusBar . updateIndicator ( INDICATOR_ID , true , "inspection-errors" , tooltip ) ; }
Update the title of the problem panel and the tooltip of the status bar icon. The title and the tooltip will
change based on the number of problems reported and how many provider reported problems.

@param {Number} numProblems - total number of problems across all providers
@param {Array.<{name:string, scanFileAsync:?function(string, string):!{$.Promise}, scanFile:?function(string, string):Object}>} providersReportingProblems - providers that reported problems
@param {boolean} aborted - true if any provider returned a result with the 'aborted' flag set
Update the title of the problem panel and the tooltip of the status bar icon . The title and the tooltip will change based on the number of problems reported and how many provider reported problems .