JohnKellyFerguson/octomaps

View on GitHub

Showing 3 of 40 total issues

Function slide has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Carousel.prototype.slide = function (type, next) {
    var $active   = this.$element.find('.item.active')
    var $next     = next || $active[type]()
    var isCycling = this.interval
    var direction = type == 'next' ? 'left' : 'right'
Severity: Minor
Found in public/admin/javascripts/bootstrap/carousel.js - About 1 hr to fix

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

      Tooltip.prototype.show = function () {
        var e = $.Event('show.bs.'+ this.type)
    
        if (this.hasContent() && this.enabled) {
          this.$element.trigger(e)
    Severity: Minor
    Found in public/admin/javascripts/bootstrap/tooltip.js - About 1 hr to fix

      Function applyPlacement has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Tooltip.prototype.applyPlacement = function(offset, placement) {
          var replace
          var $tip   = this.tip()
          var width  = $tip[0].offsetWidth
          var height = $tip[0].offsetHeight
      Severity: Minor
      Found in public/admin/javascripts/bootstrap/tooltip.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language