ssut/py-googletrans

View on GitHub

Showing 171 of 193 total issues

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

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

        addClass: function( value ) {
            var classes, elem, cur, curValue, clazz, j, finalValue,
                i = 0;
    
            if ( isFunction( value ) ) {
    Severity: Minor
    Found in docs/_build/html/_static/jquery-3.5.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/_build/html/_static/jquery-3.5.1.js - About 1 hr to fix

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

            clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                var i, l, srcElements, destElements,
                    clone = elem.cloneNode( true ),
                    inPage = isAttached( elem );
        
        
        Severity: Minor
        Found in docs/_build/html/_static/jquery-3.5.1.js - About 1 hr to fix

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

              position: function() {
                  if ( !this[ 0 ] ) {
                      return;
                  }
          
          
          Severity: Minor
          Found in docs/_build/html/_static/jquery-3.5.1.js - About 1 hr to fix

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

                when: function( singleValue ) {
                    var
            
                        // count of uncompleted subordinates
                        remaining = arguments.length,
            Severity: Minor
            Found in docs/_build/html/_static/jquery-3.5.1.js - About 1 hr to fix

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

                  remove: function( owner, key ) {
                      var i,
                          cache = owner[ this.expando ];
              
                      if ( cache === undefined ) {
              Severity: Minor
              Found in docs/_build/html/_static/jquery-3.5.1.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                    if ( support.matchesSelector && documentIsHTML &&
                        !nonnativeSelectorCache[ expr + " " ] &&
                        ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                        ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                
                
                Severity: Major
                Found in docs/_build/html/_static/jquery-3.5.1.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                        if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
                            && !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
                          switch (event.keyCode) {
                            case 37: // left
                              var prevHref = $('link[rel="prev"]').prop('href');
                  Severity: Major
                  Found in docs/_build/html/_static/doctools.js - About 1 hr to fix

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

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

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

                          def __init__(self, src, dest, origin, text, pronunciation, extra_data=None,
                      Severity: Major
                      Found in googletrans/models.py - About 50 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                    for (i = 0; i < otherterms.length; i++) {
                                      if (haystack.indexOf(otherterms[i]) == -1) {
                                        allfound = false;
                                        break;
                                      }
                        Severity: Major
                        Found in docs/_build/html/_static/searchtools.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if ( ofType ?
                                                                  node.nodeName.toLowerCase() === name :
                                                                  node.nodeType === 1 ) {
                          
                                                                  return false;
                          Severity: Major
                          Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if ( rscriptType.test( node.type || "" ) &&
                                                    !dataPriv.access( node, "globalEval" ) &&
                                                    jQuery.contains( doc, node ) ) {
                            
                                                    if ( node.src && ( node.type || "" ).toLowerCase()  !== "module" ) {
                            Severity: Major
                            Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if ( restoreDisplay == null ) {
                                                      display = style.display;
                                                      restoreDisplay = display === "none" ? "" : display;
                                                  }
                              Severity: Major
                              Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix

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

                                function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                                Severity: Minor
                                Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if ( matchedSelectors[ sel ] ) {
                                                              matchedHandlers.push( handleObj );
                                                          }
                                  Severity: Major
                                  Found in docs/_build/html/_static/jquery-3.5.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/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                      } else if ( copy !== undefined ) {
                                                          target[ name ] = copy;
                                                      }
                                      Severity: Major
                                      Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if ( nodeType === 9 ) {
                                                                if ( ( elem = context.getElementById( m ) ) ) {
                                        
                                                                    // Support: IE, Opera, Webkit
                                                                    // TODO: identify versions
                                        Severity: Major
                                        Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language