devcows/hugo-universal-theme

View on GitHub
static/js/hpneo.gmaps.js

Summary

Maintainability
F
2 wks
Test Coverage

File hpneo.gmaps.js has 1686 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(root, factory) {
  if(typeof exports === 'object') {
    module.exports = factory();
  }
  else if(typeof define === 'function' && define.amd) {
Severity: Major
Found in static/js/hpneo.gmaps.js - About 4 days to fix

    Function GMaps has 258 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var GMaps = (function(global) {
      "use strict";
    
      var doc = document;
    
    
    Severity: Major
    Found in static/js/hpneo.gmaps.js - About 1 day to fix

      Function GMaps has 254 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var GMaps = function(options) {
          if (!this) return new GMaps(options);
      
          options.zoom = options.zoom || 15;
          options.mapType = options.mapType || 'roadmap';
      Severity: Major
      Found in static/js/hpneo.gmaps.js - About 1 day to fix

        Function staticMapURL has 169 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        GMaps.staticMapURL = function(options){
          var parameters = [],
              data,
              static_root = 'https://maps.googleapis.com/maps/api/staticmap';
        
        
        Severity: Major
        Found in static/js/hpneo.gmaps.js - About 6 hrs to fix

          Function drawOverlay has 92 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          GMaps.prototype.drawOverlay = function(options) {
            var overlay = new google.maps.OverlayView(),
                auto_show = true;
          
            overlay.setMap(this.map);
          Severity: Major
          Found in static/js/hpneo.gmaps.js - About 3 hrs to fix

            Function createMarker has 81 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            GMaps.prototype.createMarker = function(options) {
              if (options.lat == undefined && options.lng == undefined && options.position == undefined) {
                throw 'No latitude or longitude defined.';
              }
            
            
            Severity: Major
            Found in static/js/hpneo.gmaps.js - About 3 hrs to fix

              Function addLayer has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              GMaps.prototype.addLayer = function(layerName, options) {
                //var default_layers = ['weather', 'clouds', 'traffic', 'transit', 'bicycling', 'panoramio', 'places'];
                options = options || {};
                var layer;
              
              
              Severity: Major
              Found in static/js/hpneo.gmaps.js - About 2 hrs to fix

                Function getRoutes has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                GMaps.prototype.getRoutes = function(options) {
                  switch (options.travelMode) {
                    case 'bicycling':
                      travelMode = google.maps.TravelMode.BICYCLING;
                      break;
                Severity: Major
                Found in static/js/hpneo.gmaps.js - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if (options.search || options.nearbySearch || options.radarSearch) {
                            var placeSearchRequest  = {
                              bounds : options.bounds || null,
                              keyword : options.keyword || null,
                              location : options.location || null,
                  Severity: Critical
                  Found in static/js/hpneo.gmaps.js - About 2 hrs to fix

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

                    GMaps.prototype.drawSteppedRoute = function(options) {
                      var self = this;
                      
                      if (options.origin && options.destination) {
                        this.getRoutes({
                    Severity: Minor
                    Found in static/js/hpneo.gmaps.js - About 1 hr to fix

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

                      GMaps.prototype.drawPolyline = function(options) {
                        var path = [],
                            points = options.path;
                      
                        if (points.length) {
                      Severity: Minor
                      Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                        Function travelRoute has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        GMaps.prototype.travelRoute = function(options) {
                          if (options.origin && options.destination) {
                            this.getRoutes({
                              origin: options.origin,
                              destination: options.destination,
                        Severity: Minor
                        Found in static/js/hpneo.gmaps.js - About 1 hr to fix

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

                            overlay.draw = function() {
                              var projection = this.getProjection(),
                                  pixel = projection.fromLatLngToDivPixel(new google.maps.LatLng(options.lat, options.lng));
                          
                              options.horizontalOffset = options.horizontalOffset || 0;
                          Severity: Minor
                          Found in static/js/hpneo.gmaps.js - About 1 hr to fix

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

                            GMaps.prototype.createControl = function(options) {
                              var control = document.createElement('div');
                            
                              control.style.cursor = 'pointer';
                              
                            Severity: Minor
                            Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                              Function onAdd has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                overlay.onAdd = function() {
                                  var el = document.createElement('div');
                              
                                  el.style.borderStyle = "none";
                                  el.style.borderWidth = "0px";
                              Severity: Minor
                              Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                                Function getElevations has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                GMaps.prototype.getElevations = function(options) {
                                  options = extend_object({
                                    locations: [],
                                    path : false,
                                    samples : 256
                                Severity: Minor
                                Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                                  Function drawPolygon has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  GMaps.prototype.drawPolygon = function(options) {
                                    var useGeoJSON = false;
                                  
                                    if(options.hasOwnProperty("useGeoJSON")) {
                                      useGeoJSON = options.useGeoJSON;
                                  Severity: Minor
                                  Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                                    Function buildContextMenuHTML has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        var buildContextMenuHTML = function(control, e) {
                                          var html = '',
                                              options = window.context_menu[self.el.id][control];
                                    
                                          for (var i in options){
                                    Severity: Minor
                                    Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                                      Function setContextMenu has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          this.setContextMenu = function(options) {
                                            window.context_menu[self.el.id][options.control] = {};
                                      
                                            var i,
                                                ul = doc.createElement('ul');
                                      Severity: Minor
                                      Found in static/js/hpneo.gmaps.js - About 1 hr to fix

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

                                          Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
                                              "use strict";
                                              if (this == null) {
                                                  throw new TypeError();
                                              }
                                        Severity: Minor
                                        Found in static/js/hpneo.gmaps.js - About 1 hr to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                    if (vertex1.lat() + (latLng.lng() - vertex1.lng()) / (vertex2.lng() - vertex1.lng()) * (vertex2.lat() - vertex1.lat()) < latLng.lat()) {
                                                      inPoly = !inPoly;
                                                    }
                                          Severity: Major
                                          Found in static/js/hpneo.gmaps.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                      if (p == 'hue' || p == 'color') {
                                                        ruleArg = '0x' + ruleArg.substring(1);
                                                      }
                                            Severity: Major
                                            Found in static/js/hpneo.gmaps.js - About 45 mins to fix

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  switch (options.verticalAlign) {
                                                    case 'top':
                                                      el.style.top = (pixel.y - content_height + options.verticalOffset) + 'px';
                                                      break;
                                                    default:
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 4 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 838..849

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 130.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  switch (options.horizontalAlign) {
                                                    case 'left':
                                                      el.style.left = (pixel.x - content_width + options.horizontalOffset) + 'px';
                                                      break;
                                                    default:
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 4 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 825..836

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 130.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.removePolyline = function(polyline) {
                                                for (var i = 0; i < this.polylines.length; i++) {
                                                  if (this.polylines[i] === polyline) {
                                                    this.polylines[i].setMap(null);
                                                    this.polylines.splice(i, 1);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 4 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 1078..1089

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 120.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.removePolygon = function(polygon) {
                                                for (var i = 0; i < this.polygons.length; i++) {
                                                  if (this.polygons[i] === polygon) {
                                                    this.polygons[i].setMap(null);
                                                    this.polygons.splice(i, 1);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 4 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 957..968

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 120.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                              Open

                                                for (var ev = 0; ev < polygon_events.length; ev++) {
                                                  (function(object, name) {
                                                    if (options[name]) {
                                                      google.maps.event.addListener(object, name, function(e){
                                                        options[name].apply(this, [e]);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 3 other locations - About 3 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 940..948
                                              static/js/hpneo.gmaps.js on lines 1020..1028
                                              static/js/hpneo.gmaps.js on lines 1061..1069

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 102.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                              Open

                                                for (var ev = 0; ev < polyline_events.length; ev++) {
                                                  (function(object, name) {
                                                    if (options[name]) {
                                                      google.maps.event.addListener(object, name, function(e){
                                                        options[name].apply(this, [e]);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 3 other locations - About 3 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 990..998
                                              static/js/hpneo.gmaps.js on lines 1020..1028
                                              static/js/hpneo.gmaps.js on lines 1061..1069

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 102.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                              Open

                                                for (var ev = 0; ev < polygon_events.length; ev++) {
                                                  (function(object, name) {
                                                    if (options[name]) {
                                                      google.maps.event.addListener(object, name, function(e){
                                                        options[name].apply(this, [e]);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 3 other locations - About 3 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 940..948
                                              static/js/hpneo.gmaps.js on lines 990..998
                                              static/js/hpneo.gmaps.js on lines 1061..1069

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 102.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                              Open

                                                for (var ev = 0; ev < polygon_events.length; ev++) {
                                                  (function(object, name) {
                                                    if (options[name]) {
                                                      google.maps.event.addListener(object, name, function(e){
                                                        options[name].apply(this, [e]);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 3 other locations - About 3 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 940..948
                                              static/js/hpneo.gmaps.js on lines 990..998
                                              static/js/hpneo.gmaps.js on lines 1020..1028

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 102.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.removeOverlay = function(overlay) {
                                                for (var i = 0; i < this.overlays.length; i++) {
                                                  if (this.overlays[i] === overlay) {
                                                    this.overlays[i].setMap(null);
                                                    this.overlays.splice(i, 1);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 2 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 1246..1255

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 89.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                else {
                                                  for (var i = 0; i < this.layers.length; i++) {
                                                    if (this.layers[i] === layer) {
                                                      this.layers[i].setMap(null);
                                                      this.layers.splice(i, 1);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 2 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 874..883

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 89.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.removeOverlays = function() {
                                                for (var i = 0, item; item = this.overlays[i]; i++) {
                                                  item.setMap(null);
                                                }
                                              
                                              
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 2 other locations - About 2 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 970..976
                                              static/js/hpneo.gmaps.js on lines 1091..1097

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 77.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.removePolylines = function() {
                                                for (var i = 0, item; item = this.polylines[i]; i++) {
                                                  item.setMap(null);
                                                }
                                              
                                              
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 2 other locations - About 2 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 885..891
                                              static/js/hpneo.gmaps.js on lines 1091..1097

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 77.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.removePolygons = function() {
                                                for (var i = 0, item; item = this.polygons[i]; i++) {
                                                  item.setMap(null);
                                                }
                                              
                                              
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 2 other locations - About 2 hrs to fix
                                              static/js/hpneo.gmaps.js on lines 885..891
                                              static/js/hpneo.gmaps.js on lines 970..976

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 77.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  this.zoomIn = function(value) {
                                                    value = value || 1;
                                              
                                                    this.zoom = this.map.getZoom() + value;
                                                    this.map.setZoom(this.zoom);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 456..461

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 73.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                for (var ev in events) {
                                                  (function(object, name) {
                                                    google.maps.event.addListener(object, name, function(e) {
                                                      events[name].apply(this, [e]);
                                                    });
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 1137..1143

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 73.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  this.zoomOut = function(value) {
                                                    value = value || 1;
                                              
                                                    this.zoom = this.map.getZoom() - value;
                                                    this.map.setZoom(this.zoom);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 449..454

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 73.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                for (var ev in events) {
                                                  (function(object, name) {
                                                    google.maps.event.addListener(object, name, function(e) {
                                                      events[name].apply(this, [e]);
                                                    });
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 1107..1113

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 73.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                request_options.origin = /string/.test(typeof options.origin) ? options.origin : new google.maps.LatLng(options.origin[0], options.origin[1]);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 1292..1292

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 64.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                request_options.destination = /string/.test(typeof options.destination) ? options.destination : new google.maps.LatLng(options.destination[0], options.destination[1]);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 1291..1291

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 64.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  for (var ev = 0; ev < events_that_doesnt_hide_context_menu.length; ev++) {
                                                    var name = events_that_doesnt_hide_context_menu[ev];
                                              
                                                    if (name in options) {
                                                      setupListener(this.map, name);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 382..388

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 61.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  for (var ev = 0; ev < events_that_hide_context_menu.length; ev++) {
                                                    var name = events_that_hide_context_menu[ev];
                                              
                                                    if (name in options) {
                                                      setupListener(this.map, name);
                                              Severity: Major
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 1 hr to fix
                                              static/js/hpneo.gmaps.js on lines 390..396

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 61.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.loadFromKML = function(options) {
                                                var layer = this.getFromKML(options);
                                                layer.setMap(this.map);
                                              
                                                return layer;
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 55 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1120..1125

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 54.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                              GMaps.prototype.loadFromFusionTables = function(options) {
                                                var layer = this.getFromFusionTables(options);
                                                layer.setMap(this.map);
                                              
                                                return layer;
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 55 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1150..1155

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 54.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      if (e.length > 0 && options.start) {
                                                        options.start(e[e.length - 1]);
                                                      }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 45 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1409..1411

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 50.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      if (e.length > 0 && options.start) {
                                                        options.start(e[e.length - 1]);
                                                      }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 45 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1455..1457

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 50.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      if (e.length > 0 && options.end) {
                                                         options.end(e[e.length - 1]);
                                                      }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 40 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1478..1480

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 48.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                            self.drawPolyline({
                                                              path: step.path,
                                                              strokeColor: options.strokeColor,
                                                              strokeOpacity: options.strokeOpacity,
                                                              strokeWeight: options.strokeWeight
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 40 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1489..1494

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 48.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      if (e.length > 0 && options.end) {
                                                         options.end(e[e.length - 1]);
                                                      }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 40 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1426..1428

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 48.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      self.drawPolyline({
                                                        path: step.path,
                                                        strokeColor: options.strokeColor,
                                                        strokeOpacity: options.strokeOpacity,
                                                        strokeWeight: options.strokeWeight
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 40 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1466..1471

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 48.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  this.el.style.height = options.height || this.el.scrollHeight || this.el.offsetHeight;
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 35 mins to fix
                                              static/js/hpneo.gmaps.js on lines 224..224

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 47.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  this.el.style.width = options.width || this.el.scrollWidth || this.el.offsetWidth;
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 35 mins to fix
                                              static/js/hpneo.gmaps.js on lines 225..225

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 47.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  if (data.fillColor) {
                                                    var fillcolor = parseColor(data.fillColor, data.fillOpacity);
                                                    polyline.push('fillcolor:' + fillcolor);
                                                  }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 35 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1794..1797

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 46.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  if (data.strokeColor) {
                                                    var color = parseColor(data.strokeColor, data.strokeOpacity);
                                                    polyline.push('color:' + color);
                                                  }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 35 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1799..1802

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 46.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                    if (styles[i].featureType){
                                                      styleRule.push('feature:' + styles[i].featureType.toLowerCase());
                                                    }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 30 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1743..1745

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 45.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                    if (styles[i].elementType) {
                                                      styleRule.push('element:' + styles[i].elementType.toLowerCase());
                                                    }
                                              Severity: Minor
                                              Found in static/js/hpneo.gmaps.js and 1 other location - About 30 mins to fix
                                              static/js/hpneo.gmaps.js on lines 1739..1741

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 45.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              There are no issues that match your filters.

                                              Category
                                              Status