async-worker/aiologger

View on GitHub

Showing 1,000 of 1,000 total issues

Avoid deeply nested control flow statements.
Open

                            if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
                                return true;
                            }
Severity: Major
Found in docs/_static/jquery-3.2.1.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( hasScripts ) {
    
                            // Support: Android <=4.0 only, PhantomJS 1 only
                            // push.apply(_, arraylike) throws on ancient WebKit
                            jQuery.merge( scripts, getAll( node, "script" ) );
    Severity: Major
    Found in docs/_static/jquery-3.2.1.js - About 45 mins to fix

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

          init: function( elem, options, prop, end, easing, unit ) {
      Severity: Minor
      Found in docs/_static/jquery-3.2.1.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ( matchedSelectors[ sel ] === undefined ) {
                                    matchedSelectors[ sel ] = handleObj.needsContext ?
                                        jQuery( sel, this ).index( cur ) > -1 :
                                        jQuery.find( sel, this, null, [ cur ] ).length;
                                }
        Severity: Major
        Found in docs/_static/jquery-3.2.1.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 docs/_static/jquery-3.2.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/_static/jquery-3.2.1.js - About 45 mins to fix

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

              function on( elem, types, selector, data, fn, one ) {
              Severity: Minor
              Found in docs/_static/jquery-3.2.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/_static/jquery-3.2.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/_static/jquery-3.2.1.js - About 45 mins to fix

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

                        def __init__(
                    Severity: Minor
                    Found in aiologger/handlers/files.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if dst_now != dst_at_rollover:
                                                  if not dst_now:
                                                      # DST kicks in before next rollover, so we need to deduct an hour
                                                      new_rollover_at -= ONE_HOUR_IN_SECONDS
                                                  else:
                      Severity: Major
                      Found in aiologger/handlers/files.py - About 45 mins to fix

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

                        jQuery.fx.timer = function( timer ) {
                            jQuery.timers.push( timer );
                            jQuery.fx.start();
                        };
                        Severity: Minor
                        Found in docs/_static/jquery-3.2.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.5.1.js on lines 7911..7914

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

                        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

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

                            if ( off > -1 ) {
                                selector = stripAndCollapse( url.slice( off ) );
                                url = url.slice( 0, off );
                            }
                        Severity: Minor
                        Found in docs/_static/jquery-3.2.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.5.1.js on lines 10355..10358

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

                        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

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

                                                        if ( returned && isFunction( returned.promise ) ) {
                                                            returned.promise()
                                                                .progress( newDefer.notify )
                                                                .done( newDefer.resolve )
                                                                .fail( newDefer.reject );
                        Severity: Minor
                        Found in docs/_static/jquery-3.5.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.2.1.js on lines 3551..3561

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

                        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

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

                                                        if ( returned && jQuery.isFunction( returned.promise ) ) {
                                                            returned.promise()
                                                                .progress( newDefer.notify )
                                                                .done( newDefer.resolve )
                                                                .fail( newDefer.reject );
                        Severity: Minor
                        Found in docs/_static/jquery-3.2.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.5.1.js on lines 3730..3740

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

                        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

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

                        jQuery.fx.timer = function( timer ) {
                            jQuery.timers.push( timer );
                            jQuery.fx.start();
                        };
                        Severity: Minor
                        Found in docs/_static/jquery-3.5.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.2.1.js on lines 7416..7419

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

                        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

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

                            if ( off > -1 ) {
                                selector = stripAndCollapse( url.slice( off ) );
                                url = url.slice( 0, off );
                            }
                        Severity: Minor
                        Found in docs/_static/jquery-3.5.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.2.1.js on lines 9825..9828

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

                        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

                                var handleObjIn, eventHandle, tmp,
                                    events, t, handleObj,
                                    special, handlers, type, namespaces, origType,
                                    elemData = dataPriv.get( elem );
                        Severity: Minor
                        Found in docs/_static/jquery-3.2.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.5.1.js on lines 5195..5198

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

                        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

                                var handleObjIn, eventHandle, tmp,
                                    events, t, handleObj,
                                    special, handlers, type, namespaces, origType,
                                    elemData = dataPriv.get( elem );
                        Severity: Minor
                        Found in docs/_static/jquery-3.5.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.2.1.js on lines 4976..4979

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

                        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

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

                            if ( typeof selector !== "string" || !selector ||
                                nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
                        
                                return results;
                            }
                        Severity: Minor
                        Found in docs/_static/jquery-3.5.1.js and 1 other location - About 45 mins to fix
                        docs/_static/jquery-3.2.1.js on lines 764..768

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

                        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

                        Severity
                        Category
                        Status
                        Source
                        Language