codeforamerica/city-analytics-dashboard

View on GitHub
public/javascripts/traffic.js

Summary

Maintainability
A
1 hr
Test Coverage

Function parseResponse has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    parseResponse: function(data){
      if(data && data.hasOwnProperty('rows')){
        var users = parseRows(data.rows);
        var activeUsers = parseInt(users['DESKTOP'], 10) | 0;
        var activeUsersMobile = parseInt(users['MOBILE'], 10) | 0;
Severity: Minor
Found in public/javascripts/traffic.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status