bryceholcomb/rider_demand

View on GitHub
app/assets/javascripts/predictor/neighborhoods.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function addNeighborhoods has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addNeighborhoods(map) {
  var $product = $("select#event_product_type").children(":selected").text();
  var $cityId = $("select#event_city_id :selected").val();
  $.ajax({
    url: '/neighborhoods.json',
Severity: Major
Found in app/assets/javascripts/predictor/neighborhoods.js - About 3 hrs to fix

    Function success has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        success:function(neighborhoods) {
          map.addSource('neighborhoods', {
            type: "geojson",
            data: {
              type: "FeatureCollection",
    Severity: Major
    Found in app/assets/javascripts/predictor/neighborhoods.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status