DamageStudios/rims

View on GitHub

Showing 186 of 250 total issues

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

  Affix.prototype.checkPosition = function () {
    if (!this.$element.is(':visible')) return

    var scrollHeight = $(document).height()
    var scrollTop    = this.$target.scrollTop()

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

      OffCanvas.prototype.show = function () {
        if (this.state) return
        
        var startEvent = $.Event('show.bs.offcanvas')
        this.$element.trigger(startEvent)

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

          html: function( value ) {
              return access( this, function( value ) {
                  var elem = this[ 0 ] || {},
                      i = 0,
                      l = this.length;

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

          Inputmask.prototype.checkVal = function(allow) {
            var len = this.mask.length
            //try to place characters where they belong
            var test = this.$element.val()
            var lastMatch = -1

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

            Collapse.prototype.show = function () {
              if (this.transitioning || this.$element.hasClass('in')) return
          
              var startEvent = $.Event('show.bs.collapse')
              this.$element.trigger(startEvent)

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

              Inputmask.prototype.checkVal = function(allow) {
                var len = this.mask.length
                //try to place characters where they belong
                var test = this.$element.val()
                var lastMatch = -1
            Severity: Minor
            Found in app/assets/javascripts/jasny-bootstrap.js - About 1 hr to fix

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

                OffCanvas.prototype.show = function () {
                  if (this.state) return
                  
                  var startEvent = $.Event('show.bs.offcanvas')
                  this.$element.trigger(startEvent)
              Severity: Minor
              Found in app/assets/javascripts/jasny-bootstrap.js - About 1 hr to fix

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

                    fix: function( event ) {
                        if ( event[ jQuery.expando ] ) {
                            return event;
                        }
                
                

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

                      addClass: function( value ) {
                          var classes, elem, cur, curValue, clazz, j, finalValue,
                              i = 0;
                  
                          if ( jQuery.isFunction( value ) ) {

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

                      Inputmask.prototype.caret = function(begin, end) {
                        if (this.$element.length === 0) return
                        if (typeof begin == 'number') {
                          end = (typeof end == 'number') ? end : begin
                          return this.$element.each(function() {

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

                          blankInputs: function(form, specifiedSelector, nonBlank) {
                            var foundInputs = $(),
                              input,
                              valueToCheck,
                              radiosForNameWithNoneSelected,

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

                            finish: function( type ) {
                                if ( type !== false ) {
                                    type = type || "fx";
                                }
                                return this.each( function() {

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

                              off: function( types, selector, fn ) {
                                  var handleObj, type;
                                  if ( types && types.preventDefault && types.handleObj ) {
                          
                                      // ( event )  dispatched jQuery.Event

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

                              Inputmask.prototype.caret = function(begin, end) {
                                if (this.$element.length === 0) return
                                if (typeof begin == 'number') {
                                  end = (typeof end == 'number') ? end : begin
                                  return this.$element.each(function() {
                            Severity: Minor
                            Found in app/assets/javascripts/jasny-bootstrap.js - About 1 hr to fix

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

                                Fileinput.prototype.change = function(e) {
                                  if (e.target.files === undefined) e.target.files = e.target && e.target.value ? [ {name: e.target.value.replace(/^.+\\/, '')} ] : []
                                  if (e.target.files.length === 0) return
                              
                                  this.$hidden.val('')

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

                                        setup: function() {
                                
                                            if ( rformElems.test( this.nodeName ) ) {
                                
                                                // IE doesn't fire change on a check/radio until blur; trigger it on click

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

                                  function propFilter( props, specialEasing ) {
                                      var index, name, easing, value, hooks;
                                  
                                      // camelCase, specialEasing and expand cssHook pass
                                      for ( index in props ) {

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

                                      Tab.prototype.activate = function (element, container, callback) {
                                        var $active    = container.find('> .active')
                                        var transition = callback
                                          && $.support.transition
                                          && $active.hasClass('fade')

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

                                        Fileinput.prototype.change = function(e) {
                                          if (e.target.files === undefined) e.target.files = e.target && e.target.value ? [ {name: e.target.value.replace(/^.+\\/, '')} ] : []
                                          if (e.target.files.length === 0) return
                                      
                                          this.$hidden.val('')
                                      Severity: Minor
                                      Found in app/assets/javascripts/jasny-bootstrap.js - About 1 hr to fix

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

                                        function getWidthOrHeight( elem, name, extra ) {
                                        
                                            // Start with offset property, which is equivalent to the border-box value
                                            var valueIsBorderBox = true,
                                                val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language