tomi77/pyems

View on GitHub

Showing 168 of 178 total issues

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

    nav.init = function ($) {
        var doc = $(document),
            self = this;

        this.navBar = $('div.wy-side-scroll:first');
Severity: Minor
Found in docs/html/_static/js/theme.js - About 1 hr to fix

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

        handlers: function( event, handlers ) {
            var sel, handleObj, matches, i,
                handlerQueue = [],
                delegateCount = handlers.delegateCount,
                cur = event.target;
    Severity: Minor
    Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

          attr: function( elem, name, value ) {
              var hooks, ret,
                  nType = elem.nodeType;
      
              // don't get/set attributes on text, comment and attribute nodes
      Severity: Minor
      Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

        jQuery.ready.promise = function( obj ) {
            if ( !readyList ) {
        
                readyList = jQuery.Deferred();
        
        
        Severity: Minor
        Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

          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;
          Severity: Minor
          Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

              function deleteComment(id) {
                $.ajax({
                  type: 'POST',
                  url: opts.deleteCommentURL,
                  data: {id: id},
            Severity: Minor
            Found in docs/html/_static/websupport.js - About 1 hr to fix

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

                  toggleClass: function( value, stateVal ) {
                      var type = typeof value;
              
                      if ( typeof stateVal === "boolean" && type === "string" ) {
                          return stateVal ? this.addClass( value ) : this.removeClass( value );
              Severity: Minor
              Found in docs/html/_static/jquery-1.11.1.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;
                        }
                
                
                Severity: Minor
                Found in docs/html/_static/jquery-1.11.1.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 docs/html/_static/jquery-1.11.1.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 docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                        function getComments(id) {
                          $.ajax({
                           type: 'GET',
                           url: opts.getCommentsURL,
                           data: {node: id},
                      Severity: Minor
                      Found in docs/html/_static/websupport.js - About 1 hr to fix

                        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
                                        // after a propertychange. Eat the blur-change in special.change.handle.
                        Severity: Minor
                        Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                  "*": [ function( prop, value ) {
                                      var tween = this.createTween( prop, value ),
                                          target = tween.cur(),
                                          parts = rfxnum.exec( value ),
                                          unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                          Severity: Minor
                          Found in docs/html/_static/jquery-1.11.1.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 docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

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

                                Consider simplifying this complex logical expression.
                                Open

                                        if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                support.getById && context.nodeType === 9 && documentIsHTML &&
                                                Expr.relative[ tokens[1].type ] ) {
                                
                                            context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                Severity: Major
                                Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                  var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                  Severity: Major
                                  Found in docs/html/_static/jquery-1.11.1.js - About 50 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                                                    return true;
                                                                }
                                    Severity: Major
                                    Found in docs/html/_static/jquery-1.11.1.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 docs/html/_static/jquery-1.11.1.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if ( typeof xhr.responseText === "string" ) {
                                                                            responses.text = xhr.responseText;
                                                                        }
                                        Severity: Major
                                        Found in docs/html/_static/jquery-1.11.1.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language