async-worker/aiologger

View on GitHub

Showing 334 of 1,000 total issues

File jquery-3.5.1.js has 6902 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v3.5.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in docs/_static/jquery-3.5.1.js - About 2 wks to fix

    File jquery-3.2.1.js has 6620 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v3.2.1
     * https://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in docs/_static/jquery-3.2.1.js - About 2 wks to fix

      Function Sizzle has 1510 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      ( function( window ) {
      var i,
          support,
          Expr,
          getText,
      Severity: Major
      Found in docs/_static/jquery-3.5.1.js - About 1 wk to fix

        Function Sizzle has 1452 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        (function( window ) {
        
        var i,
            support,
            Expr,
        Severity: Major
        Found in docs/_static/jquery-3.2.1.js - About 1 wk to fix

          File underscore-1.13.1.js has 1445 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          (function (global, factory) {
            typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
            typeof define === 'function' && define.amd ? define('underscore', factory) :
            (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
              var current = global._;
          Severity: Major
          Found in docs/_static/underscore-1.13.1.js - About 3 days to fix

            File underscore-1.3.1.js has 665 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            //     Underscore.js 1.3.1
            //     (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
            //     Underscore is freely distributable under the MIT license.
            //     Portions of Underscore are inspired or borrowed from Prototype,
            //     Oliver Steele's Functional, and John Resig's Micro-Templating.
            Severity: Major
            Found in docs/_static/underscore-1.3.1.js - About 1 day to fix

              File websupport.js has 638 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * websupport.js
               * ~~~~~~~~~~~~~
               *
               * sphinx.websupport utilities for all documentation.
              Severity: Major
              Found in docs/_static/websupport.js - About 1 day to fix

                Function setDocument has 262 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                setDocument = Sizzle.setDocument = function( node ) {
                    var hasCompare, subWindow,
                        doc = node ? node.ownerDocument || node : preferredDoc;
                
                    // Return early if doc is invalid or already selected
                Severity: Major
                Found in docs/_static/jquery-3.5.1.js - About 1 day to fix

                  Function ajax has 257 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      ajax: function( url, options ) {
                  
                          // If url is an object, simulate pre-1.5 signature
                          if ( typeof url === "object" ) {
                              options = url;
                  Severity: Major
                  Found in docs/_static/jquery-3.5.1.js - About 1 day to fix

                    Function ajax has 251 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        ajax: function( url, options ) {
                    
                            // If url is an object, simulate pre-1.5 signature
                            if ( typeof url === "object" ) {
                                options = url;
                    Severity: Major
                    Found in docs/_static/jquery-3.2.1.js - About 1 day to fix

                      Function setDocument has 245 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      setDocument = Sizzle.setDocument = function( node ) {
                          var hasCompare, subWindow,
                              doc = node ? node.ownerDocument || node : preferredDoc;
                      
                          // Return early if doc is invalid or already selected
                      Severity: Major
                      Found in docs/_static/jquery-3.2.1.js - About 1 day to fix

                        Function Stemmer has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
                        Open

                        var Stemmer = function() {
                        
                          var step2list = {
                            ational: 'ate',
                            tional: 'tion',
                        Severity: Minor
                        Found in docs/_static/language_data.js - About 1 day to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function query has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
                        Open

                          query : function(query) {
                            var i;
                        
                            // stem the searchterms and add them to the correct list
                            var stemmer = new Stemmer();
                        Severity: Minor
                        Found in docs/_static/searchtools.js - About 7 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function Deferred has 178 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            Deferred: function( func ) {
                                var tuples = [
                        
                                        // action, add listener, callbacks,
                                        // ... .then handlers, argument index, [final state]
                        Severity: Major
                        Found in docs/_static/jquery-3.5.1.js - About 7 hrs to fix

                          Function initOnKeyListeners has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
                          Open

                            initOnKeyListeners: function() {
                              // only install a listener if it is really needed
                              if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS &&
                                  !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)
                                  return;
                          Severity: Minor
                          Found in docs/_static/doctools.js - About 7 hrs to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          Function Deferred has 176 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Deferred: function( func ) {
                                  var tuples = [
                          
                                          // action, add listener, callbacks,
                                          // ... .then handlers, argument index, [final state]
                          Severity: Major
                          Found in docs/_static/jquery-3.2.1.js - About 7 hrs to fix

                            Function performObjectSearch has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                            Open

                              performObjectSearch : function(object, otherterms) {
                                var filenames = this._index.filenames;
                                var docnames = this._index.docnames;
                                var objects = this._index.objects;
                                var objnames = this._index.objnames;
                            Severity: Minor
                            Found in docs/_static/searchtools.js - About 6 hrs to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function Stemmer has 151 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var Stemmer = function() {
                            
                              var step2list = {
                                ational: 'ate',
                                tional: 'tion',
                            Severity: Major
                            Found in docs/_static/language_data.js - About 6 hrs to fix

                              Function performTermsSearch has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                              Open

                                performTermsSearch : function(searchterms, excluded, terms, titleterms) {
                                  var docnames = this._index.docnames;
                                  var filenames = this._index.filenames;
                                  var titles = this._index.titles;
                              
                              
                              Severity: Minor
                              Found in docs/_static/searchtools.js - About 5 hrs to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function compute_rollover has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  def compute_rollover(self, current_time: int) -> int:
                                      """
                                      Work out the rollover time based on the specified time.
                              
                                      If we are rolling over at midnight or weekly, then the interval is
                              Severity: Minor
                              Found in aiologger/handlers/files.py - About 5 hrs to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Severity
                              Category
                              Status
                              Source
                              Language