lib/template-generator.js
function renderResultDetails(sourceCode, messages, parentIndex) {
	const topIssues = messages.length < 10 ? '' : _.groupBy(messages, 'severity');

	return resultDetailsTemplate({
		parentIndex,
		sourceCode: renderSourceCode(sourceCode, messages, parentIndex),
		detailSummary: resultSummaryTemplate({
			topIssues: renderSummaryDetails(topIssues),
			issues: _.map(messages, renderIssue).join('')
		})
	});
}
function renderResultDetails(sourceCode, messages, parentIndex) {
	const topIssues = messages.length < 10 ? '' : _.groupBy(messages, 'severity');

	return resultDetailsTemplate({
		parentIndex,
		sourceCode: renderSourceCode(sourceCode, messages, parentIndex),
		detailSummary: resultSummaryTemplate({
			topIssues: renderSummaryDetails(topIssues),
			issues: _.map(messages, renderIssue).join('')
		})
	});
}
function renderResultDetails ( sourceCode , messages , parentIndex ) { const topIssues = messages . length < 10 ? '' : _ . groupBy ( messages , 'severity' ) ; return resultDetailsTemplate ( { parentIndex , sourceCode : renderSourceCode ( sourceCode , messages , parentIndex ) , detailSummary : resultSummaryTemplate ( { topIssues : renderSummaryDetails ( topIssues ) , issues : _ . map ( messages , renderIssue ) . join ( '' ) } ) } ) ; }
Renders the result details with tabs for source code and a summary
@param {string} sourceCode source code string
@param {array} messages array of messages with the problems in a file
@param {int} parentIndex file index
@returns {string} HTML string of result details
Renders the result details with tabs for source code and a summary