Showing 238 of 258 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/_build/html/_static/jquery-3.5.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/_build/html/_static/jquery-3.5.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/_build/html/_static/underscore-1.13.1.js - About 3 days to fix

        File parsers.py has 983 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # parsers.py
        
        import argparse
        import sys
        
        
        Severity: Major
        Found in fba/parsers.py - About 2 days 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/_build/html/_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/_build/html/_static/jquery-3.5.1.js - About 1 day to fix

              File map.py has 566 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # map.py
              
              import sys
              from collections import Counter, defaultdict
              from multiprocessing import cpu_count
              Severity: Major
              Found in fba/map.py - 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/_build/html/_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

                File qc.py has 498 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # qc.py
                
                from itertools import cycle, islice
                from pathlib import Path
                
                
                Severity: Minor
                Found in fba/qc.py - About 7 hrs to fix

                  Function query has a Cognitive Complexity of 49 (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/_build/html/_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/_build/html/_static/jquery-3.5.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/_build/html/_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 extract_feature_barcoding_regex has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
                    Open

                    def extract_feature_barcoding_regex(
                        read1_file,
                        read2_file,
                        cb_file,
                        fb_file,
                    Severity: Minor
                    Found in fba/regex.py - 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/_build/html/_static/language_data.js - About 6 hrs to fix

                      File demultiplex.py has 415 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      # demulitplex.py
                      
                      import re
                      import sys
                      import hdbscan
                      Severity: Minor
                      Found in fba/demultiplex.py - About 5 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/_build/html/_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

                        File searchtools.js has 381 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*
                         * searchtools.js
                         * ~~~~~~~~~~~~~~~~
                         *
                         * Sphinx JavaScript utilities for the full-text search.
                        Severity: Minor
                        Found in docs/_build/html/_static/searchtools.js - About 5 hrs to fix

                          Function filter_matching has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
                          Open

                          def filter_matching(
                              matching_file,
                              filtered_matching_file,
                              cb_pos_start=0,
                              cb_num_mismatches=1,
                          Severity: Minor
                          Found in fba/filter.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

                          Function defaultPrefilter has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function defaultPrefilter( elem, props, opts ) {
                              var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
                                  isBox = "width" in props || "height" in props,
                                  anim = this,
                                  orig = {},
                          Severity: Major
                          Found in docs/_build/html/_static/jquery-3.5.1.js - About 4 hrs to fix

                            Function Callbacks has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            jQuery.Callbacks = function( options ) {
                            
                                // Convert options from String-formatted to Object-formatted if needed
                                // (we check in cache first)
                                options = typeof options === "string" ?
                            Severity: Major
                            Found in docs/_build/html/_static/jquery-3.5.1.js - About 4 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language