ssut/py-googletrans

View on GitHub

Showing 193 of 193 total issues

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 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 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

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    "even": createPositionalPseudo( function( matchIndexes, length ) {
                        var i = 0;
                        for ( ; i < length; i += 2 ) {
                            matchIndexes.push( i );
                        }
            Severity: Minor
            Found in docs/_build/html/_static/jquery-3.5.1.js and 1 other location - About 55 mins to fix
            docs/_build/html/_static/jquery-3.5.1.js on lines 2268..2274

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 54.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    "odd": createPositionalPseudo( function( matchIndexes, length ) {
                        var i = 1;
                        for ( ; i < length; i += 2 ) {
                            matchIndexes.push( i );
                        }
            Severity: Minor
            Found in docs/_build/html/_static/jquery-3.5.1.js and 1 other location - About 55 mins to fix
            docs/_build/html/_static/jquery-3.5.1.js on lines 2260..2266

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 54.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            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

                                                    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 ( attrs[ i ] ) {
                                              name = attrs[ i ].name;
                                              if ( name.indexOf( "data-" ) === 0 ) {
                                                  name = camelCase( name.slice( 5 ) );
                                                  dataAttr( elem, name, data[ name ] );
                  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

                      Avoid deeply nested control flow statements.
                      Open

                                  if (!allfound) {
                                    continue;
                                  }
                      Severity: Major
                      Found in docs/_build/html/_static/searchtools.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        } else if ( match[ 2 ] ) {
                                            push.apply( results, context.getElementsByTagName( selector ) );
                                            return results;
                        
                                        // Class selector
                        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 ( !selector ) {
                                                  push.apply( results, seed );
                                                  return results;
                                              }
                          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 ( !( unmatched[ i ] || setMatched[ i ] ) ) {
                                                            setMatched[ i ] = pop.call( results );
                                                        }
                            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 ( ( event.result = ret ) === false ) {
                                                          event.preventDefault();
                                                          event.stopPropagation();
                                                      }
                              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 ( 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

                                                          while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                                                              cur = cur.replace( " " + clazz + " ", " " );
                                                          }
                                  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 ( ( elem = matcherOut[ i ] ) ) {
                                    
                                                                // Restore matcherIn since elem is not yet a final match
                                                                temp.push( ( matcherIn[ i ] = elem ) );
                                                            }
                                    Severity: Major
                                    Found in docs/_build/html/_static/jquery-3.5.1.js - About 45 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language