stevenhaddox/rvm_fw

View on GitHub

Showing 42 of 114 total issues

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

        translate = function( styles, href, media ){
            var qs = styles.replace( respond.regex.keyframes, '' ).match( respond.regex.media ),
                ql = qs && qs.length || 0;

            //try to get CSS path
Severity: Minor
Found in public/javascripts/respond-1.4.2.js - About 1 hr to fix

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

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

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

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

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

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

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

            Tab.prototype.show = function () {
              var $this    = this.element
              var $ul      = $this.closest('ul:not(.dropdown-menu)')
              var selector = $this.data('target')
          
          
          Severity: Minor
          Found in public/javascripts/bootstrap.js - About 1 hr to fix

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

              Tab.prototype.show = function () {
                var $this    = this.element
                var $ul      = $this.closest('ul:not(.dropdown-menu)')
                var selector = $this.data('target')
            
            
            Severity: Minor
            Found in public/javascripts/bootstrap/tab.js - About 1 hr to fix

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

                      getEmValue = function() {
                          var ret,
                              div = doc.createElement('div'),
                              body = doc.body,
                              originalHTMLFontSize = docElem.style.fontSize,
              Severity: Minor
              Found in public/javascripts/respond-1.4.2.js - About 1 hr to fix

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

                  Affix.prototype.checkPosition = function () {
                    if (!this.$element.is(':visible')) return
                
                    var height       = this.$element.height()
                    var offset       = this.options.offset
                Severity: Minor
                Found in public/javascripts/bootstrap.js - About 1 hr to fix

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

                    Affix.prototype.checkPosition = function () {
                      if (!this.$element.is(':visible')) return
                  
                      var height       = this.$element.height()
                      var offset       = this.options.offset
                  Severity: Minor
                  Found in public/javascripts/bootstrap/affix.js - About 1 hr to fix

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

                        function next() {
                          $active
                            .removeClass('active')
                            .find('> .dropdown-menu > .active')
                              .removeClass('active')
                    Severity: Minor
                    Found in public/javascripts/bootstrap/tab.js - About 1 hr to fix

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

                        ScrollSpy.prototype.refresh = function () {
                          var that          = this
                          var offsetMethod  = 'offset'
                          var offsetBase    = 0
                      
                      
                      Severity: Minor
                      Found in public/javascripts/bootstrap.js - About 1 hr to fix

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

                            function next() {
                              $active
                                .removeClass('active')
                                .find('> .dropdown-menu > .active')
                                  .removeClass('active')
                        Severity: Minor
                        Found in public/javascripts/bootstrap.js - About 1 hr to fix

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

                            , keydown: function (e) {
                                var $this
                                  , $items
                                  , $active
                                  , $parent
                          Severity: Minor
                          Found in public/javascripts/bootstrap-dropdown.js - About 1 hr to fix

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

                              Collapse.prototype.hide = function () {
                                if (this.transitioning || !this.$element.hasClass('in')) return
                            
                                var startEvent = $.Event('hide.bs.collapse')
                                this.$element.trigger(startEvent)
                            Severity: Minor
                            Found in public/javascripts/bootstrap.js - About 1 hr to fix

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

                                Collapse.prototype.hide = function () {
                                  if (this.transitioning || !this.$element.hasClass('in')) return
                              
                                  var startEvent = $.Event('hide.bs.collapse')
                                  this.$element.trigger(startEvent)
                              Severity: Minor
                              Found in public/javascripts/bootstrap/collapse.js - About 1 hr to fix

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

                                  ScrollSpy.prototype.refresh = function () {
                                    var that          = this
                                    var offsetMethod  = 'offset'
                                    var offsetBase    = 0
                                
                                
                                Severity: Minor
                                Found in public/javascripts/bootstrap/scrollspy.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                      if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){
                                                          if( !styleBlocks[ thisstyle.media ] ){
                                                              styleBlocks[ thisstyle.media ] = [];
                                                          }
                                                          styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
                                  Severity: Major
                                  Found in public/javascripts/respond-1.4.2.js - About 1 hr to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if ( href.substring(0,2) === "//" ) { href = w.location.protocol + href; }
                                    Severity: Major
                                    Found in public/javascripts/respond-1.4.2.js - About 45 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return false
                                      Severity: Major
                                      Found in public/javascripts/bootstrap/affix.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
                                        Severity: Major
                                        Found in public/javascripts/bootstrap/affix.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language