fossasia/CommonsNet

View on GitHub

Showing 126 of 3,019 total issues

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

    removeClass: function( value ) {
        var classes, elem, cur, clazz, j,
            i = 0,
            len = this.length,
            proceed = arguments.length === 0 || typeof value === "string" && value;
Severity: Minor
Found in js/jquery.2.0.0.js - About 1 hr to fix

    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() {
    Severity: Minor
    Found in js/jquery.2.0.0.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 js/bootstrap.js - About 1 hr to fix

        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 ) {
        Severity: Minor
        Found in js/jquery.2.0.0.js - About 1 hr to fix

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

          jQuery.fn.offset = function( options ) {
              if ( arguments.length ) {
                  return options === undefined ?
                      this :
                      this.each(function( i ) {
          Severity: Minor
          Found in js/jquery.2.0.0.js - About 1 hr to fix

            Function off has 26 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
                        handleObj = types.handleObj;
            Severity: Minor
            Found in js/jquery.2.0.0.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 js/bootstrap.js - About 1 hr to fix

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

                    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                        var i, l, srcElements, destElements,
                            clone = elem.cloneNode( true ),
                            inPage = jQuery.contains( elem.ownerDocument, elem );
                
                
                Severity: Minor
                Found in js/jquery.2.0.0.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 js/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 js/bootstrap.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                      if ( unit !== "px" && start ) {
                                          // Iteratively approximate from a nonzero starting point
                                          // Prefer the current property, because this process will be trivial if it uses the same units
                                          // Fallback to end or a simple constant
                                          start = jQuery.css( tween.elem, prop, true ) || end || 1;
                      Severity: Major
                      Found in js/jquery.2.0.0.js - About 1 hr to fix

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

                            access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                        Severity: Major
                        Found in js/jquery.2.0.0.js - About 50 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if ( copyIsArray ) {
                                                  copyIsArray = false;
                                                  clone = src && jQuery.isArray(src) ? src : [];
                          
                                              } else {
                          Severity: Major
                          Found in js/jquery.2.0.0.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                        if ( cache[1] === true ) {
                                                            return true;
                                                        }
                            Severity: Major
                            Found in js/jquery.2.0.0.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( (event.result = ret) === false ) {
                                                          event.preventDefault();
                                                          event.stopPropagation();
                                                      }
                              Severity: Major
                              Found in js/jquery.2.0.0.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    if ( Expr.relative[ tokens[j].type ] ) {
                                                        break;
                                                    }
                                Severity: Major
                                Found in js/jquery.2.0.0.js - About 45 mins to fix

                                  Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                  Severity: Minor
                                  Found in js/jquery.2.0.0.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if ( name.indexOf( "data-" ) === 0 ) {
                                                                name = jQuery.camelCase( name.substring(5) );
                                                                dataAttr( elem, name, data[ name ] );
                                                            }
                                    Severity: Major
                                    Found in js/jquery.2.0.0.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                                  cur += clazz + " ";
                                                              }
                                      Severity: Major
                                      Found in js/jquery.2.0.0.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( conv && s[ "throws" ] ) {
                                                                response = conv( response );
                                                            } else {
                                                                try {
                                                                    response = conv( response );
                                        Severity: Major
                                        Found in js/jquery.2.0.0.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language