<%= options.title || 'JavaScript Source Analysis' %>

Total / Average Lines

<%= report.summary.total.sloc %> / <%= report.summary.average.sloc %>

Average Maintainability

<%= report.summary.average.maintainability %>

Worst Maintainability Scores

    <% _.each(_.take(_.sortBy(report.reports, function (report) { return report.complexity.maintainability; }), 5), function(report, i) { %>
  • <%= report.complexity.maintainability.toFixed(0) %> score <%= report.info.fileShort %>
  • <% }); %>

Largest Files

    <% _.each(_.take(_.sortBy(report.reports, function (report) { return -1 * report.complexity.methodAggregate.sloc.physical }), 5), function(report, i) { %>
  • <%= report.complexity.methodAggregate.sloc.physical %> lines <%= report.info.fileShort %>
  • <% }); %>
<% if (report.summary.total.jshint) { %>

Lint Warnings

    <% _.each(_.take(_.sortBy(report.reports, function (report) { return -1 * report.jshint.messages }), 5), function(report, i) { %>
  • <%= report.jshint.messages %> lint errors <%= report.info.fileShort %>
  • <% }); %>
<% } %>