pinclub/pinclub

View on GitHub
public/libs/jquery.nicescroll.js

Summary

Maintainability
F
2 mos
Test Coverage

Function NiceScrollClass has 2508 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var NiceScrollClass = function (myopt, me) {

    var self = this;

    this.version = '3.7.5';
Severity: Major
Found in public/libs/jquery.nicescroll.js - About 1 wk to fix

    File jquery.nicescroll.js has 2984 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* jquery.nicescroll
    -- version 3.7.5
    -- copyright 2017-07-13 InuYaksa*2017
    -- licensed under the MIT
    --
    Severity: Major
    Found in public/libs/jquery.nicescroll.js - About 1 wk to fix

      Function init has 1078 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          this.init = function () {
      
            self.saved.css = [];
      
            if (cap.isoperamini) return true; // SORRY, DO NOT WORK!
      Severity: Major
      Found in public/libs/jquery.nicescroll.js - About 5 days to fix

        Function ScrollMomentumClass2D has 140 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var ScrollMomentumClass2D = function (nc) {
            var self = this;
            this.nc = nc;
        
            this.lastx = 0;
        Severity: Major
        Found in public/libs/jquery.nicescroll.js - About 5 hrs to fix

          Function ontouchmove has 115 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    self.ontouchmove = function (e, byiframe) {
          
                      if (!self.rail.drag) return true;
          
                      if (e.targetTouches && opt.preventmultitouchscrolling) {
          Severity: Major
          Found in public/libs/jquery.nicescroll.js - About 4 hrs to fix

            Function getBrowserDetection has 91 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var getBrowserDetection = function () {
            
                if (browserdetected) return browserdetected;
            
                var _el = _doc.createElement('DIV'),
            Severity: Major
            Found in public/libs/jquery.nicescroll.js - About 3 hrs to fix

              Function onResize has 85 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  this.onResize = function (e, page) {
              
                    if (!self || !self.win) return false;
              
                    var premaxh = self.page.maxh,
              Severity: Major
              Found in public/libs/jquery.nicescroll.js - About 3 hrs to fix

                Function ontouchstart has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          self.ontouchstart = function (e) {
                
                            if (self.locked) return false;
                
                            //if (e.pointerType && e.pointerType != 2 && e.pointerType != "touch") return false;
                Severity: Major
                Found in public/libs/jquery.nicescroll.js - About 3 hrs to fix

                  Function onkeypress has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          self.onkeypress = function (e) {
                            if (self.railslocked && self.page.maxh === 0) return true;
                  
                            e = e || _win.event;
                            var tg = self.getTarget(e);
                  Severity: Major
                  Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                    Function doMomentum has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        this.doMomentum = function (gp) {
                          var t = now();
                          var l = (gp) ? t + gp : self.lasttime;
                    
                          var sl = self.nc.getScrollLeft();
                    Severity: Major
                    Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                      Function oniframeload has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              var oniframeload = function () {
                                self.iframexd = false;
                                var doc;
                                try {
                                  doc = 'contentDocument' in this ? this.contentDocument : this.contentWindow._doc;
                      Severity: Major
                      Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                        Function doScrollRelative has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function doScrollRelative(px, py, chkscroll, iswheel) {
                        
                              if (!self.scrollrunning) {
                                self.newscrolly = self.getScrollTop();
                                self.newscrollx = self.getScrollLeft();
                        Severity: Major
                        Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                          Function doScrollPos has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                this.doScrollPos = function (x, y, spd) { //no-trans
                          
                                  var py = self.getScrollTop();
                                  var px = self.getScrollLeft();
                          
                          
                          Severity: Major
                          Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                            Function updateScrollBar has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                this.updateScrollBar = function (len) {
                                  var pos, off;
                                  if (self.ishwscroll) {
                                    self.rail.css({
                                      height: self.win.innerHeight() - (opt.railpadding.top + opt.railpadding.bottom)
                            Severity: Major
                            Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                        if (self.hasfocus || (self.hasmousefocus && !domfocus) || (self.ispage && !domfocus && !mousefocus)) {
                                          var key = e.keyCode;
                              
                                          if (self.railslocked && key != 27) return self.cancelEvent(e);
                              
                              
                              Severity: Critical
                              Found in public/libs/jquery.nicescroll.js - About 2 hrs to fix

                                Function remove has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    this.remove = function () {
                                      self.stop();
                                      if (self.cursortimeout) clearTimeout(self.cursortimeout);
                                      for (var n in self.delaylist) if (self.delaylist[n]) clearAnimationFrame(self.delaylist[n].h);
                                      self.doZoomOut();
                                Severity: Minor
                                Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                  Function doZoomIn has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      this.doZoomIn = function (e) {
                                        if (self.zoomactive) return;
                                        self.zoomactive = true;
                                  
                                        self.zoomrestore = {
                                  Severity: Minor
                                  Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

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

                                          this.doScrollPos = function (x, y, spd) { //trans
                                    
                                            var py = self.getScrollTop();
                                            var px = self.getScrollLeft();
                                    
                                    
                                    Severity: Minor
                                    Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                      Function onscroll has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              var onscroll = function () {
                                                var df = ((now() - t) > 600) ? 0.04 : 0.02;
                                      
                                                if (self.speedx) {
                                                  nx = Math.floor(self.lastscrollx - (self.speedx * (1 - self.demulxy)));
                                      Severity: Minor
                                      Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

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

                                            this.showCursor = function (py, px) {
                                              if (self.cursortimeout) {
                                                clearTimeout(self.cursortimeout);
                                                self.cursortimeout = 0;
                                              }
                                        Severity: Minor
                                        Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                          Consider simplifying this complex logical expression.
                                          Open

                                                if (!self.ispage || !cap.isieold) {
                                          
                                                  var cont = self.docscroll;
                                                  if (self.ispage) cont = (self.haswrapper) ? self.win : self.doc;
                                          
                                          
                                          Severity: Critical
                                          Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                            Consider simplifying this complex logical expression.
                                            Open

                                                  if (writingMode == "horizontal-tb" || writingMode == "lr-tb" || writingMode === "") {
                                                    this.isrtlmode = (target.css("direction") == "rtl");
                                                    this.isvertical = false;
                                                  } else {
                                                    this.isrtlmode = (writingMode == "vertical-rl" || writingMode == "tb" || writingMode == "tb-rl" || writingMode == "rl-tb");
                                            Severity: Critical
                                            Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

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

                                                      self.onmousemove = function (e) {
                                                        if (self.rail.drag) {
                                                          if (self.rail.drag.pt !== 1) return;
                                              
                                                          if (cap.ischrome && e.which === 0) return self.onmouseup(e);
                                              Severity: Minor
                                              Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

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

                                                    function execScrollWheel(e, hr, chkscroll) {
                                                      var px, py;
                                                
                                                      if (!chkscroll && hasparentscrollingphase) return true;
                                                
                                                
                                                Severity: Minor
                                                Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

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

                                                      this.onmousewheel = function (e) {
                                                        if (self.wheelprevented||self.locked) return false;
                                                        if (self.railslocked) {
                                                          self.debounced("checkunlock", self.resize, 250);
                                                          return false;
                                                  Severity: Minor
                                                  Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                                    Function _modernWheelEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        function _modernWheelEvent(dom, name, fn, bubble) {
                                                          self._bind(dom, name, function (e) {
                                                            e = e || _win.event;
                                                            var event = {
                                                              original: e,
                                                    Severity: Minor
                                                    Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                                      Consider simplifying this complex logical expression.
                                                      Open

                                                              if (!self.ispage && !cap.cantouch && !(/HTML|^BODY/.test(self.win[0].nodeName))) {
                                                                if (!self.win.attr("tabindex")) self.win.attr({
                                                                  "tabindex": ++tabindexcounter
                                                                });
                                                      
                                                      
                                                      Severity: Major
                                                      Found in public/libs/jquery.nicescroll.js - About 1 hr to fix

                                                        Function BezierClass has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            var BezierClass = function (st, ed, spd, p1, p2, p3, p4) {
                                                        Severity: Major
                                                        Found in public/libs/jquery.nicescroll.js - About 50 mins to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                                    if (self.railh) self.autohidedom = self.autohidedom.add(self.railh);
                                                          Severity: Major
                                                          Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                            if (self.rail.scrollable && !self.railh.scrollable) self.rail.drag.ck = (maxh > 0) ? "v" : false;
                                                                            else if (!self.rail.scrollable && self.railh.scrollable) self.rail.drag.ck = (maxw > 0) ? "h" : false;
                                                                            else self.rail.drag.ck = false;
                                                            Severity: Major
                                                            Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                                              if (fy === 0 && !self.hasmoving) {
                                                                                if (!self.ispage) self.rail.drag = false;
                                                                                return true;
                                                                              }
                                                              Severity: Major
                                                              Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                                  if (self.rail.scrollable) self.setScrollTop(ny);
                                                                Severity: Major
                                                                Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                  Avoid deeply nested control flow statements.
                                                                  Open

                                                                                if (cap.isie9) _dom.attachEvent("onpropertychange", self.onAttributeChange); //IE9 DOMAttrModified bug
                                                                  Severity: Major
                                                                  Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                    Avoid deeply nested control flow statements.
                                                                    Open

                                                                                    if (cap.hasmousecapture) _doc.releaseCapture();
                                                                    Severity: Major
                                                                    Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                      Avoid deeply nested control flow statements.
                                                                      Open

                                                                                      if (self.scroll.x > mw) self.scroll.x = mw;
                                                                      Severity: Major
                                                                      Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                        Avoid deeply nested control flow statements.
                                                                        Open

                                                                                          if (self.prepareTransition) self.resetTransition();
                                                                        Severity: Major
                                                                        Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                          Avoid deeply nested control flow statements.
                                                                          Open

                                                                                          if (skp) return self.stopPropagation(e);
                                                                          Severity: Major
                                                                          Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                            Avoid deeply nested control flow statements.
                                                                            Open

                                                                                            if (!ip) {
                                                                                              if (cap.hasmousecapture) tg.setCapture();
                                                                                              if (opt.emulatetouch) {
                                                                                                if (tg.onclick && !(tg._onclick || false)) { // intercept DOM0 onclick event
                                                                                                  tg._onclick = tg.onclick;
                                                                            Severity: Major
                                                                            Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                              Avoid deeply nested control flow statements.
                                                                              Open

                                                                                              if (e.target === _dom) self.remove();
                                                                              Severity: Major
                                                                              Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                Avoid deeply nested control flow statements.
                                                                                Open

                                                                                                if (ismouse) return self.cancelEvent(e);
                                                                                Severity: Major
                                                                                Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                  Avoid deeply nested control flow statements.
                                                                                  Open

                                                                                                    if (self.railh && self.railh.scrollable) {
                                                                                                      self.setScrollLeft(nx);
                                                                                                      self.showCursor(ny, nx);
                                                                                                    } else {
                                                                                                      self.showCursor(ny);
                                                                                  Severity: Major
                                                                                  Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                    if (ny < 0) {
                                                                                                      ny = Math.round(ny / 2);
                                                                                                    } else if (ny > self.page.maxh) {
                                                                                                      ny = self.page.maxh + Math.round((ny - self.page.maxh) / 2);
                                                                                                    }
                                                                                    Severity: Major
                                                                                    Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                      Avoid deeply nested control flow statements.
                                                                                      Open

                                                                                                      if (self.ishwscroll && opt.bouncescroll) {
                                                                                                        if (nx < 0) {
                                                                                                          nx = Math.round(nx / 2);
                                                                                                        } else if (nx > self.page.maxw) {
                                                                                                          nx = self.page.maxw + Math.round((nx - self.page.maxw) / 2);
                                                                                      Severity: Major
                                                                                      Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                        Avoid deeply nested control flow statements.
                                                                                        Open

                                                                                                        if (self.scroll.x < 0) self.scroll.x = 0;
                                                                                        Severity: Major
                                                                                        Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                          Avoid deeply nested control flow statements.
                                                                                          Open

                                                                                                          if (!self.rail.drag.ck) {
                                                                                                            if (ay > dz && ax > dz) self.rail.drag.dl = "f";
                                                                                                            else if (ay > dz) self.rail.drag.dl = (ax > locktollerance) ? "f" : "v";
                                                                                                            else if (ax > dz) self.rail.drag.dl = (ay > locktollerance) ? "f" : "h";
                                                                                                          }
                                                                                          Severity: Major
                                                                                          Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                            if (self.rail.drag.y === e.clientY && self.rail.drag.x === e.clientX) return self.cancelEvent(e);  // prevent first useless move event 
                                                                                            Severity: Major
                                                                                            Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                              if (!self.rail.drag.dl) return self.cancelEvent(e);
                                                                                              Severity: Major
                                                                                              Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                Avoid deeply nested control flow statements.
                                                                                                Open

                                                                                                              if (!(/fixed|absolute/.test(self.viewport.css("position")))) self.css(self.viewport, {
                                                                                                                "position": "relative"
                                                                                                              });
                                                                                                Severity: Major
                                                                                                Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                          } else if (opt.autohidemode == "cursor") {
                                                                                                            self.autohidedom = $().add(self.cursor);
                                                                                                            if (self.railh) self.autohidedom = self.autohidedom.add(self.cursorh);
                                                                                                          } else if (opt.autohidemode == "hidden") {
                                                                                                            self.autohidedom = false;
                                                                                                  Severity: Major
                                                                                                  Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                                    if (/SUBMIT|CANCEL|BUTTON/i.test($(tg).attr('type'))) {
                                                                                                                      self.preventclick = {
                                                                                                                        "tg": tg,
                                                                                                                        "click": false
                                                                                                                      };
                                                                                                    Severity: Major
                                                                                                    Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                        if (cap.isie10) _doc.selection.clear();
                                                                                                      Severity: Major
                                                                                                      Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                          if (self.rail.drag.hr) self.doScrollLeft(Math.round(self.scroll.x * self.scrollratio.x), opt.cursordragspeed);
                                                                                                                          else self.doScrollTop(Math.round(self.scroll.y * self.scrollratio.y), opt.cursordragspeed);
                                                                                                        Severity: Major
                                                                                                        Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                          if (ny < 0) {
                                                                                                                            ny = 0;
                                                                                                                            fy = 0;
                                                                                                                          }
                                                                                                                          else if (ny > self.page.maxh) {
                                                                                                          Severity: Major
                                                                                                          Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                            if (self.rail.drag.dl == "v") nx = self.rail.drag.sl;
                                                                                                                            else if (self.rail.drag.dl == "h") ny = self.rail.drag.st;
                                                                                                            Severity: Major
                                                                                                            Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                              if (self.scroll.y > my) self.scroll.y = my;
                                                                                                              Severity: Major
                                                                                                              Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                                  if (mo.removedNodes.length > 0) {
                                                                                                                                    for (var dd in mo.removedNodes) {
                                                                                                                                      if (!!self && (mo.removedNodes[dd] === _dom)) return self.remove();
                                                                                                                                    }
                                                                                                                                  }
                                                                                                                Severity: Major
                                                                                                                Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                                  if (self.scroll.y < 0) self.scroll.y = 0;
                                                                                                                  Severity: Major
                                                                                                                  Found in public/libs/jquery.nicescroll.js - About 45 mins to fix

                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                    Open

                                                                                                                            if (opt.cursordragontouch && (this.istouchcapable || cap.cantouch)) {
                                                                                                                              self.bind(self.cursor, "touchstart", self.ontouchstartCursor);
                                                                                                                              self.bind(self.cursor, "touchmove", self.ontouchmoveCursor);
                                                                                                                              self.bind(self.cursor, "touchend", self.ontouchendCursor);
                                                                                                                              self.cursorh && self.bind(self.cursorh, "touchstart", function (e) {
                                                                                                                    Severity: Major
                                                                                                                    Found in public/libs/jquery.nicescroll.js - About 40 mins to fix

                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                      Open

                                                                                                                              if (cap.cantouch || self.istouchcapable || opt.emulatetouch || cap.hasmstouch) {
                                                                                                                      
                                                                                                                                self.scrollmom = new ScrollMomentumClass2D(self);
                                                                                                                      
                                                                                                                                var delayedclick = null;
                                                                                                                      Severity: Major
                                                                                                                      Found in public/libs/jquery.nicescroll.js - About 40 mins to fix

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                            } else if (this.isvertical) { // RTL mode with reverse horizontal axis
                                                                                                                              this.hasreversehr = !(cap.iswebkit || cap.isie || cap.isie11);
                                                                                                                            } else {
                                                                                                                              this.hasreversehr = !(cap.iswebkit || (cap.isie && !cap.isie10 && !cap.isie11));
                                                                                                                            }
                                                                                                                        Severity: Major
                                                                                                                        Found in public/libs/jquery.nicescroll.js - About 40 mins to fix

                                                                                                                          Function undelegate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              this.undelegate = function (dom, name, fn, bubble, active) {
                                                                                                                          Severity: Minor
                                                                                                                          Found in public/libs/jquery.nicescroll.js - About 35 mins to fix

                                                                                                                            Function triggerScrollStart has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                this.triggerScrollStart = function (cx, cy, rx, ry, ms) {
                                                                                                                            Severity: Minor
                                                                                                                            Found in public/libs/jquery.nicescroll.js - About 35 mins to fix

                                                                                                                              Function bind has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  this.bind = function (dom, name, fn, bubble, active) {
                                                                                                                              Severity: Minor
                                                                                                                              Found in public/libs/jquery.nicescroll.js - About 35 mins to fix

                                                                                                                                Function _bind has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    this._bind = function (el, name, fn, bubble, active) { // primitive bind
                                                                                                                                Severity: Minor
                                                                                                                                Found in public/libs/jquery.nicescroll.js - About 35 mins to fix

                                                                                                                                  Function delegate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                      this.delegate = function (dom, name, fn, bubble, active) {
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in public/libs/jquery.nicescroll.js - About 35 mins to fix

                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                    Open

                                                                                                                                                  return self.cancelEvent(e);
                                                                                                                                    Severity: Major
                                                                                                                                    Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                      Open

                                                                                                                                                  if (ret) return self.cancelEvent(e);
                                                                                                                                      Severity: Major
                                                                                                                                      Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                        Open

                                                                                                                                              if (self.nativescrollingarea) return true; // this isn't my business
                                                                                                                                        Severity: Major
                                                                                                                                        Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                          Open

                                                                                                                                                          if (!self.rail.drag.dl) return self.cancelEvent(e);
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                  return self;
                                                                                                                                            Severity: Major
                                                                                                                                            Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                    return ret;
                                                                                                                                              Severity: Major
                                                                                                                                              Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                                  return self.stopPropagation(e);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                                  if (self.rail.drag.y === e.clientY && self.rail.drag.x === e.clientX) return self.cancelEvent(e);  // prevent first useless move event 
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                    Open

                                                                                                                                                          if (self.railslocked) return self.cancelEvent(e);
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                      Open

                                                                                                                                                                    return self.onmousemove(e);
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                        Open

                                                                                                                                                              return execScrollWheel(e, true, chk);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                          Open

                                                                                                                                                                      return true;
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in public/libs/jquery.nicescroll.js - About 30 mins to fix

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

                                                                                                                                                                  if (cap.hastranslate3d && opt.enabletranslate3d) {
                                                                                                                                                                    this.setScrollTop = function (val, silent) {
                                                                                                                                                                      self.doc.translate.y = val;
                                                                                                                                                                      self.doc.translate.ty = (val * -1) + "px";
                                                                                                                                                                      self.doc.css(cap.trstyle, "translate3d(" + self.doc.translate.tx + "," + self.doc.translate.ty + ",0)");
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 day to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 594..607

                                                                                                                                                            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 303.

                                                                                                                                                            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 {
                                                                                                                                                                    this.setScrollTop = function (val, silent) {
                                                                                                                                                                      self.doc.translate.y = val;
                                                                                                                                                                      self.doc.translate.ty = (val * -1) + "px";
                                                                                                                                                                      self.doc.css(cap.trstyle, "translate(" + self.doc.translate.tx + "," + self.doc.translate.ty + ")");
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 day to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 581..594

                                                                                                                                                            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 303.

                                                                                                                                                            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

                                                                                                                                                              jQuery.fn.scrollLeft = function (value) {
                                                                                                                                                                if (value === undefined) {
                                                                                                                                                                  var nice = (this[0]) ? $.data(this[0], '__nicescroll') || false : false;
                                                                                                                                                                  return (nice && nice.ishwscroll) ? nice.getScrollLeft() : _scrollLeft.call(this);
                                                                                                                                                                } else {
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 7 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3577..3587

                                                                                                                                                            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 179.

                                                                                                                                                            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

                                                                                                                                                              jQuery.fn.scrollTop = function (value) {
                                                                                                                                                                if (value === undefined) {
                                                                                                                                                                  var nice = (this[0]) ? $.data(this[0], '__nicescroll') || false : false;
                                                                                                                                                                  return (nice && nice.ishwscroll) ? nice.getScrollTop() : _scrollTop.call(this);
                                                                                                                                                                } else {
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 7 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3604..3614

                                                                                                                                                            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 179.

                                                                                                                                                            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

                                                                                                                                                              $.cssHooks.pageXOffset = {
                                                                                                                                                                get: function (elem, computed, extra) {
                                                                                                                                                                  var nice = $.data(elem, '__nicescroll') || false;
                                                                                                                                                                  return (nice && nice.ishwscroll) ? nice.getScrollLeft() : _scrollLeft.call(elem);
                                                                                                                                                                },
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 6 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3565..3575

                                                                                                                                                            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 156.

                                                                                                                                                            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

                                                                                                                                                              jQuery.cssHooks.pageYOffset = {
                                                                                                                                                                get: function (elem, computed, extra) {
                                                                                                                                                                  var nice = $.data(elem, '__nicescroll') || false;
                                                                                                                                                                  return (nice && nice.ishwscroll) ? nice.getScrollTop() : _scrollTop.call(elem);
                                                                                                                                                                },
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 6 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3592..3602

                                                                                                                                                            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 156.

                                                                                                                                                            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 (opt.sensitiverail) {
                                                                                                                                                                        self.bind(self.rail, "click", function (e) {
                                                                                                                                                                          self.doRailClick(e, false, false);
                                                                                                                                                                        });
                                                                                                                                                                        self.bind(self.rail, "dblclick", function (e) {
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 5 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1729..1742

                                                                                                                                                            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 151.

                                                                                                                                                            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 (opt.sensitiverail) {
                                                                                                                                                                          self.bind(self.railh, "click", function (e) {
                                                                                                                                                                            self.doRailClick(e, false, true);
                                                                                                                                                                          });
                                                                                                                                                                          self.bind(self.railh, "dblclick", function (e) {
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 5 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1703..1716

                                                                                                                                                            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 151.

                                                                                                                                                            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 (self.rail.drag.hr) {
                                                                                                                                                                            self.scroll.x = self.rail.drag.sx + (e.touches[0].clientX - self.rail.drag.x);
                                                                                                                                                                            if (self.scroll.x < 0) self.scroll.x = 0;
                                                                                                                                                                            var mw = self.scrollvaluemaxw;
                                                                                                                                                                            if (self.scroll.x > mw) self.scroll.x = mw;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 5 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1448..1453

                                                                                                                                                            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 135.

                                                                                                                                                            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 {
                                                                                                                                                                            self.scroll.y = self.rail.drag.sy + (e.touches[0].clientY - self.rail.drag.y);
                                                                                                                                                                            if (self.scroll.y < 0) self.scroll.y = 0;
                                                                                                                                                                            var my = self.scrollvaluemax;
                                                                                                                                                                            if (self.scroll.y > my) self.scroll.y = my;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 5 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1443..1448

                                                                                                                                                            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 135.

                                                                                                                                                            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 (self.rail.drag.hr) {
                                                                                                                                                                          self.scroll.x = self.rail.drag.sx + (e.clientX - self.rail.drag.x);
                                                                                                                                                                          if (self.scroll.x < 0) self.scroll.x = 0;
                                                                                                                                                                          var mw = self.scrollvaluemaxw;
                                                                                                                                                                          if (self.scroll.x > mw) self.scroll.x = mw;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 4 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1525..1530

                                                                                                                                                            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 127.

                                                                                                                                                            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 {
                                                                                                                                                                          self.scroll.y = self.rail.drag.sy + (e.clientY - self.rail.drag.y);
                                                                                                                                                                          if (self.scroll.y < 0) self.scroll.y = 0;
                                                                                                                                                                          var my = self.scrollvaluemax;
                                                                                                                                                                          if (self.scroll.y > my) self.scroll.y = my;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 4 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1520..1525

                                                                                                                                                            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 127.

                                                                                                                                                            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.getScrollTop = function (last) {
                                                                                                                                                                    if (!last) {
                                                                                                                                                                      var mtx = getMatrixValues();
                                                                                                                                                                      if (mtx) return (mtx.length == 16) ? -mtx[13] : -mtx[5]; //matrix3d 16 on IE10
                                                                                                                                                                      if (self.timerscroll && self.timerscroll.bz) return self.timerscroll.bz.getNow();
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 4 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 563..570

                                                                                                                                                            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 125.

                                                                                                                                                            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.getScrollLeft = function (last) {
                                                                                                                                                                    if (!last) {
                                                                                                                                                                      var mtx = getMatrixValues();
                                                                                                                                                                      if (mtx) return (mtx.length == 16) ? -mtx[12] : -mtx[4]; //matrix3d 16 on IE10
                                                                                                                                                                      if (self.timerscroll && self.timerscroll.bh) return self.timerscroll.bh.getNow();
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 4 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 554..561

                                                                                                                                                            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 125.

                                                                                                                                                            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 (self.ishwscroll && opt.bouncescroll) {
                                                                                                                                                                              if (nx < 0) {
                                                                                                                                                                                nx = Math.round(nx / 2);
                                                                                                                                                                              } else if (nx > self.page.maxw) {
                                                                                                                                                                                nx = self.page.maxw + Math.round((nx - self.page.maxw) / 2);
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 3 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1291..1310

                                                                                                                                                            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 97.

                                                                                                                                                            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 (self.ishwscroll && opt.bouncescroll) {
                                                                                                                                                                            if (ny < 0) {
                                                                                                                                                                              ny = Math.round(ny / 2);
                                                                                                                                                                            } else if (ny > self.page.maxh) {
                                                                                                                                                                              ny = self.page.maxh + Math.round((ny - self.page.maxh) / 2);
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 3 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1317..1332

                                                                                                                                                            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 97.

                                                                                                                                                            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 (!self.bouncescroll || !self.rail.visibility) {
                                                                                                                                                                      if (y < 0) {
                                                                                                                                                                        y = 0;
                                                                                                                                                                        clipped = true;
                                                                                                                                                                      } else if (y > self.page.maxh) {
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3177..3185

                                                                                                                                                            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 94.

                                                                                                                                                            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 (!self.bouncescroll || !self.railh.visibility) {
                                                                                                                                                                      if (x < 0) {
                                                                                                                                                                        x = 0;
                                                                                                                                                                        clipped = true;
                                                                                                                                                                      } else if (x > self.page.maxw) {
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3168..3176

                                                                                                                                                            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 94.

                                                                                                                                                            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

                                                                                                                                                                      self.bind(self.win, "mouseenter", function (e) {   // *
                                                                                                                                                                        mousefocus = (self.getTarget(e)).id || self.getTarget(e) || false;
                                                                                                                                                                        self.hasmousefocus = true;
                                                                                                                                                                        if (self.canshowonmouseevent) self.noticeCursor();
                                                                                                                                                                      });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1826..1830

                                                                                                                                                            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

                                                                                                                                                                      self.bind(self.win, "focus", function (e) {  // better using native events
                                                                                                                                                                        domfocus = (self.getTarget(e)).id || self.getTarget(e) || false;
                                                                                                                                                                        self.hasfocus = true;
                                                                                                                                                                        if (self.canshowonmouseevent) self.noticeCursor();
                                                                                                                                                                      });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1836..1840

                                                                                                                                                            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

                                                                                                                                                                      self.jqbind(self.rail, "mouseenter", function () {
                                                                                                                                                                        if (!self.ispage && !self.win.is(":visible")) return false;
                                                                                                                                                                        if (self.canshowonmouseevent) self.showCursor();
                                                                                                                                                                        self.rail.active = true;
                                                                                                                                                                      });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1719..1723

                                                                                                                                                            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 86.

                                                                                                                                                            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

                                                                                                                                                                        self.jqbind(self.railh, "mouseenter", function () {
                                                                                                                                                                          if (!self.ispage && !self.win.is(":visible")) return false;
                                                                                                                                                                          if (self.canshowonmouseevent) self.showCursor();
                                                                                                                                                                          self.rail.active = true;
                                                                                                                                                                        });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1693..1697

                                                                                                                                                            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 86.

                                                                                                                                                            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 (self.speedy) {
                                                                                                                                                                        ny = Math.floor(self.lastscrolly - (self.speedy * (1 - self.demulxy)));
                                                                                                                                                                        self.lastscrolly = ny;
                                                                                                                                                                        if ((ny < 0) || (ny > pageh)) df = 0.10;
                                                                                                                                                                      }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3505..3509

                                                                                                                                                            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 84.

                                                                                                                                                            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 (self.speedx) {
                                                                                                                                                                        nx = Math.floor(self.lastscrollx - (self.speedx * (1 - self.demulxy)));
                                                                                                                                                                        self.lastscrollx = nx;
                                                                                                                                                                        if ((nx < 0) || (nx > pagew)) df = 0.10;
                                                                                                                                                                      }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3511..3515

                                                                                                                                                            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 84.

                                                                                                                                                            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 (y < 0) y = y / 2 | 0;
                                                                                                                                                                      else if (y > self.page.maxh) y = self.page.maxh + (y - self.page.maxh) / 2 | 0;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3060..3061

                                                                                                                                                            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 79.

                                                                                                                                                            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 (x < 0) x = x / 2 | 0;
                                                                                                                                                                      else if (x > self.page.maxw) x = self.page.maxw + (x - self.page.maxw) / 2 | 0;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3058..3059

                                                                                                                                                            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 79.

                                                                                                                                                            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 (nx < 0) {
                                                                                                                                                                    nx = 0;
                                                                                                                                                                    snap = true;
                                                                                                                                                                  } else if (nx > self.nc.page.maxw) {
                                                                                                                                                                    nx = self.nc.page.maxw;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3443..3449

                                                                                                                                                            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 75.

                                                                                                                                                            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 (ny < 0) {
                                                                                                                                                                    ny = 0;
                                                                                                                                                                    snap = true;
                                                                                                                                                                  } else if (ny > self.nc.page.maxh) {
                                                                                                                                                                    ny = self.nc.page.maxh;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 2 hrs to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3451..3457

                                                                                                                                                            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 75.

                                                                                                                                                            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 (self.isiframe && !cap.hasmousecapture) {
                                                                                                                                                                          self.saved.csspointerevents = self.doc.css("pointer-events");
                                                                                                                                                                          self.css(self.doc, { "pointer-events": "none" });
                                                                                                                                                                        }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1485..1490

                                                                                                                                                            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 70.

                                                                                                                                                            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

                                                                                                                                                                  _win.constructor.prototype.addEventListener = _doc.constructor.prototype.addEventListener = Element.prototype.addEventListener = function (type, listener, useCapture) {
                                                                                                                                                                    this.attachEvent("on" + type, listener);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2456..2458

                                                                                                                                                            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 70.

                                                                                                                                                            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

                                                                                                                                                                  _win.constructor.prototype.removeEventListener = _doc.constructor.prototype.removeEventListener = Element.prototype.removeEventListener = function (type, listener, useCapture) {
                                                                                                                                                                    this.detachEvent("on" + type, listener);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2453..2455

                                                                                                                                                            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 70.

                                                                                                                                                            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 (self.isiframe && !cap.hasmousecapture) {
                                                                                                                                                                        self.saved.csspointerevents = self.doc.css("pointer-events");
                                                                                                                                                                        self.css(self.doc, {
                                                                                                                                                                          "pointer-events": "none"
                                                                                                                                                                        });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1420..1423

                                                                                                                                                            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 70.

                                                                                                                                                            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

                                                                                                                                                                  self.cursorwidth = Math.min(self.view.w, Math.round(self.view.w * (self.view.w / self.page.w)));
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2296..2296

                                                                                                                                                            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 68.

                                                                                                                                                            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

                                                                                                                                                                  self.cursorheight = Math.min(self.view.h, Math.round(self.view.h * (self.view.h / self.page.h)));
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2299..2299

                                                                                                                                                            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 68.

                                                                                                                                                            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 if (self.rail.drag.ck == "h") {
                                                                                                                                                            
                                                                                                                                                                              if (ay > dz && ax <= locktollerance) {
                                                                                                                                                                                self.rail.drag = false;
                                                                                                                                                                              }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1350..1364

                                                                                                                                                            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 66.

                                                                                                                                                            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 if (self.rail.drag.ck == "v") {
                                                                                                                                                                              if (ax > dz && ay <= locktollerance) {
                                                                                                                                                                                self.rail.drag = false;
                                                                                                                                                                              }
                                                                                                                                                                              else if (ay > dz) self.rail.drag.dl = "v";
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1357..1364

                                                                                                                                                            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 66.

                                                                                                                                                            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 if (opt.autohidemode == "cursor") {
                                                                                                                                                                      self.autohidedom = $().add(self.cursor);
                                                                                                                                                                      if (self.railh) self.autohidedom = self.autohidedom.add(self.cursorh);
                                                                                                                                                                    } else if (opt.autohidemode == "hidden") {
                                                                                                                                                                      self.autohidedom = false;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1096..1106

                                                                                                                                                            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 65.

                                                                                                                                                            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 if (opt.autohidemode == "scroll") {
                                                                                                                                                                      self.autohidedom = $().add(self.rail);
                                                                                                                                                                      if (self.railh) self.autohidedom = self.autohidedom.add(self.railh);
                                                                                                                                                                    } else if (opt.autohidemode == "cursor") {
                                                                                                                                                                      self.autohidedom = $().add(self.cursor);
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1099..1106

                                                                                                                                                            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 65.

                                                                                                                                                            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

                                                                                                                                                                  this.doScrollTop = function (y, spd) { //trans
                                                                                                                                                                    var x = (self.scrollrunning) ? self.newscrollx : self.getScrollLeft();
                                                                                                                                                                    self.doScrollPos(x, y, spd);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 3 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3014..3017
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3149..3152
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3154..3157

                                                                                                                                                            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 4 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                  this.doScrollLeft = function (x, spd) { //no-trans
                                                                                                                                                                    var y = (self.scrollrunning) ? self.newscrolly : self.getScrollTop();
                                                                                                                                                                    self.doScrollPos(x, y, spd);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 3 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3014..3017
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3019..3022
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3154..3157

                                                                                                                                                            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 4 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                  this.doScrollTop = function (y, spd) { //no-trans
                                                                                                                                                                    var x = (self.scrollrunning) ? self.newscrollx : self.getScrollLeft();
                                                                                                                                                                    self.doScrollPos(x, y, spd);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 3 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3014..3017
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3019..3022
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3149..3152

                                                                                                                                                            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 3 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                        self.jqbind(self.railh, "mouseleave", function () {
                                                                                                                                                                          self.rail.active = false;
                                                                                                                                                                          if (!self.rail.drag) self.hideCursor();
                                                                                                                                                                        });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 2 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1698..1701
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1789..1792

                                                                                                                                                            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 3 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                      self.jqbind(self.rail, "mouseleave", function () {
                                                                                                                                                                        self.rail.active = false;
                                                                                                                                                                        if (!self.rail.drag) self.hideCursor();
                                                                                                                                                                      });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 2 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1724..1727
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1789..1792

                                                                                                                                                            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 4 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                  this.doScrollLeft = function (x, spd) { //trans
                                                                                                                                                                    var y = (self.scrollrunning) ? self.newscrolly : self.getScrollTop();
                                                                                                                                                                    self.doScrollPos(x, y, spd);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 3 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3019..3022
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3149..3152
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3154..3157

                                                                                                                                                            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 3 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                        self.jqbind(self.zoom, "mouseleave", function () {
                                                                                                                                                                          self.rail.active = false;
                                                                                                                                                                          if (!self.rail.drag) self.hideCursor();
                                                                                                                                                                        });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 2 other locations - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1698..1701
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1724..1727

                                                                                                                                                            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

                                                                                                                                                                    if (((self.newscrolly - py) * (y - py) < 0) || ((self.newscrollx - px) * (x - px) < 0)) self.cancelScroll(); //inverted movement detection      
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3164..3164

                                                                                                                                                            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 60.

                                                                                                                                                            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 (((self.newscrolly - py) * (y - py) < 0) || ((self.newscrollx - px) * (x - px) < 0)) self.cancelScroll(); //inverted movement detection
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3050..3050

                                                                                                                                                            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 60.

                                                                                                                                                            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 (self.speedx) {
                                                                                                                                                                          var scx = self.nc.getScrollLeft();
                                                                                                                                                                          //              if (scx != self.chkx) self.stop();
                                                                                                                                                                          self.chkx = nx;
                                                                                                                                                                          self.nc.setScrollLeft(nx);
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3528..3533

                                                                                                                                                            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 59.

                                                                                                                                                            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 (self.speedy) {
                                                                                                                                                                          var scy = self.nc.getScrollTop();
                                                                                                                                                                          //              if (scy != self.chky) self.stop();
                                                                                                                                                                          self.chky = ny;
                                                                                                                                                                          self.nc.setScrollTop(ny);
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3521..3526

                                                                                                                                                            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 59.

                                                                                                                                                            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 (scrolldirx !== dx) {
                                                                                                                                                                      if (self.scrollmom) self.scrollmom.stop();
                                                                                                                                                                      self.newscrollx = self.getScrollLeft();
                                                                                                                                                                      scrolldirx = dx;
                                                                                                                                                                    }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2838..2842

                                                                                                                                                            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 58.

                                                                                                                                                            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 (scrolldiry !== dy) {
                                                                                                                                                                      if (self.scrollmom) self.scrollmom.stop();
                                                                                                                                                                      self.newscrolly = self.getScrollTop();
                                                                                                                                                                      scrolldiry = dy;
                                                                                                                                                                    }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2807..2811

                                                                                                                                                            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 58.

                                                                                                                                                            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 (self.railh) self.railh.css({
                                                                                                                                                                      width: self.win.innerWidth() - (opt.railpadding.left + opt.railpadding.right)
                                                                                                                                                                    });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 717..719

                                                                                                                                                            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 56.

                                                                                                                                                            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

                                                                                                                                                                    self.rail.css({
                                                                                                                                                                      height: self.win.innerHeight() - (opt.railpadding.top + opt.railpadding.bottom)
                                                                                                                                                                    });
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 1 hr to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 720..722

                                                                                                                                                            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 56.

                                                                                                                                                            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 (opt.preservenativescrolling && ((self.checkarea + 600) < nw)) {
                                                                                                                                                                    self.nativescrollingarea = self.isScrollable(e);
                                                                                                                                                                    chk = true;
                                                                                                                                                                  }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 55 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2930..2933

                                                                                                                                                            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 53.

                                                                                                                                                            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 (opt.preservenativescrolling && ((self.checkarea + 600) < nw)) {
                                                                                                                                                                    self.nativescrollingarea = self.isScrollable(e);
                                                                                                                                                                    chk = true;
                                                                                                                                                                  }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 55 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2948..2951

                                                                                                                                                            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 53.

                                                                                                                                                            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 (off) {
                                                                                                                                                                        if (off.top) pos.top += off.top;
                                                                                                                                                                        if (off.left) pos.left += off.left;
                                                                                                                                                                      }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 55 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 733..736

                                                                                                                                                            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 53.

                                                                                                                                                            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 (off) {
                                                                                                                                                                      if (off.top) pos.top += off.top;
                                                                                                                                                                      if (off.left) pos.left += off.left;
                                                                                                                                                                    }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 55 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 757..760

                                                                                                                                                            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 53.

                                                                                                                                                            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

                                                                                                                                                                    self.scrollvaluemaxw = self.railh.width - self.cursorwidth - (opt.railpadding.left + opt.railpadding.right);
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 50 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2302..2302

                                                                                                                                                            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 51.

                                                                                                                                                            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

                                                                                                                                                                  self.scrollvaluemax = self.view.h - self.cursorheight - (opt.railpadding.top + opt.railpadding.bottom);
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 50 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2307..2307

                                                                                                                                                            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 51.

                                                                                                                                                            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 (("changedTouches" in e)) {
                                                                                                                                                                            e.clientX = e.changedTouches[0].clientX;
                                                                                                                                                                            e.clientY = e.changedTouches[0].clientY;
                                                                                                                                                                          }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 45 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1138..1141

                                                                                                                                                            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 (!("clientX" in e) && ("changedTouches" in e)) {
                                                                                                                                                                            e.clientX = e.changedTouches[0].clientX;
                                                                                                                                                                            e.clientY = e.changedTouches[0].clientY;
                                                                                                                                                                          }
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 45 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 1270..1273

                                                                                                                                                            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

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

                                                                                                                                                                this.show = function () {
                                                                                                                                                                  self.hidden = false;
                                                                                                                                                                  self.railslocked = false;
                                                                                                                                                                  return self.showRails();
                                                                                                                                                                };
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 40 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2609..2613

                                                                                                                                                            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.hide = function () {
                                                                                                                                                                  self.hidden = true;
                                                                                                                                                                  self.railslocked = true;
                                                                                                                                                                  return self.hideRails();
                                                                                                                                                                };
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 40 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2603..2607

                                                                                                                                                            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

                                                                                                                                                                    cur = (hr) ? ((e.pageX - self.railh.offset().left - (self.cursorwidth / 2)) * self.scrollratio.x) : ((e.pageY - self.rail.offset().top - (self.cursorheight / 2)) * self.scrollratio.y);
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 40 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 787..787

                                                                                                                                                            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 5 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                      if (y < 0) y = 0;
                                                                                                                                                                      else if (y > self.page.maxh) y = self.page.maxh;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 4 other locations - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3055..3056
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3125..3126
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3127..3128
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3255..3256

                                                                                                                                                            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 5 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                    if (px < 0) px = 0;
                                                                                                                                                                    else if (px > self.page.maxw) px = self.page.maxw;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 4 other locations - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3053..3054
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3055..3056
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3125..3126
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3255..3256

                                                                                                                                                            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 5 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                  if (ny < 0) ny = 0;
                                                                                                                                                                  else if (ny > self.page.maxh) ny = self.page.maxh;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 4 other locations - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3053..3054
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3055..3056
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3125..3126
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3127..3128

                                                                                                                                                            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.doScrollLeft = function (x, spd) { //direct
                                                                                                                                                                    var y = self.getScrollTop();
                                                                                                                                                                    self.doScrollPos(x, y, spd);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2979..2982

                                                                                                                                                            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.doScrollTop = function (y, spd) { //direct
                                                                                                                                                                    var x = self.getScrollLeft();
                                                                                                                                                                    self.doScrollPos(x, y, spd);
                                                                                                                                                                  };
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 2975..2978

                                                                                                                                                            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 5 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                    if (py < 0) py = 0;
                                                                                                                                                                    else if (py > self.page.maxh) py = self.page.maxh;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 4 other locations - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3053..3054
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3055..3056
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3127..3128
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3255..3256

                                                                                                                                                            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 5 locations. Consider refactoring.
                                                                                                                                                            Open

                                                                                                                                                                      if (x < 0) x = 0;
                                                                                                                                                                      else if (x > self.page.maxw) x = self.page.maxw;
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 4 other locations - About 35 mins to fix
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3053..3054
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3125..3126
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3127..3128
                                                                                                                                                            public/libs/jquery.nicescroll.js on lines 3255..3256

                                                                                                                                                            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 (self.me.clientWidth != self.page.width || self.me.clientHeight != self.page.height) return self.lazyResize(30);
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public/libs/jquery.nicescroll.js and 1 other location - About 35 mins to fix
                                                                                                                                                            public/libs/editor/editor.js on lines 3737..3745

                                                                                                                                                            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

                                                                                                                                                            There are no issues that match your filters.

                                                                                                                                                            Category
                                                                                                                                                            Status