Vizzuality/gfw-climate

View on GitHub
app/assets/javascripts/abstract/layer/MarkersLayerClass.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

      _setMarker: function(stories) {
        this.infowindows = [];

        this.markers = _.map(
          stories,
Severity: Major
Found in app/assets/javascripts/abstract/layer/MarkersLayerClass.js - About 2 hrs to fix

    Function markers has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              function(story) {
                story.title = _.str.truncate(story.title, 34);
    
                var markerOptions, infoWindowOptions;
    
    
    Severity: Minor
    Found in app/assets/javascripts/abstract/layer/MarkersLayerClass.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status