codeforamerica/intake

View on GitHub
intake/static/intake/js/stats_entry.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function buildChart2 has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function buildChart2(data) {
  var timeline = data.map(function (oneOrgsData) {
    var weeklyRates = oneOrgsData.weekly_totals.map(function(week) {
      week.date = moment(week.date).format('YYYY-MM-DD');
      week.count = Number(week.count);
Severity: Minor
Found in intake/static/intake/js/stats_entry.js - About 1 hr to fix

    Function buildChart1 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function buildChart1(data){
        var timeline = data.map(function (oneOrgsData) {
            var weeklyRates = oneOrgsData.weekly_totals.map(function(week) {
                week.date = moment(week.date).format('YYYY-MM-DD');
                week.count = Number(week.count);
    Severity: Minor
    Found in intake/static/intake/js/stats_entry.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status