tadashi-aikawa/owlmixin

View on GitHub

Showing 225 of 243 total issues

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

/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in docs/_static/jquery-3.6.0.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.6.0.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 __init__.py has 965 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # coding: utf-8
        # pylint: disable=too-many-lines
        
        import inspect
        import sys
        Severity: Major
        Found in owlmixin/__init__.py - About 2 days to fix

          File owlcollections.py has 841 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # coding: utf-8
          
          import functools
          from collections import deque
          from itertools import chain, filterfalse, groupby, islice, takewhile, tee
          Severity: Major
          Found in owlmixin/owlcollections.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/_static/jquery-3.6.0.js - About 1 day to fix

              Function ajax has 259 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.6.0.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 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.6.0.js - About 7 hrs to fix

                  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

                    File transformers.py has 410 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # coding: utf-8
                    from typing import Any, Iterator, List, Optional, Sequence
                    
                    from owlmixin import util
                    from owlmixin.owloption import TOption
                    Severity: Minor
                    Found in owlmixin/transformers.py - About 5 hrs to fix

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

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

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

                          initOnKeyListeners: () => {
                            // only install a listener if it is really needed
                            if (
                              !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS &&
                              !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS
                        Severity: Minor
                        Found in docs/_static/doctools.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 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/_static/jquery-3.6.0.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/_static/jquery-3.6.0.js - About 4 hrs to fix

                            TIterator has 35 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class TIterator(
                                DictsTransformer,
                                JsonTransformer,
                                YamlTransformer,
                                CsvTransformer,
                            Severity: Minor
                            Found in owlmixin/owlcollections.py - About 4 hrs to fix

                              Function traverse has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
                              Open

                              def traverse(
                                  type_, name, value, cls, force_snake_case: bool, force_cast: bool, restrict: bool
                              ) -> Any:
                                  # pylint: disable=too-many-return-statements,too-many-branches,too-many-arguments
                                  if isinstance(type_, str):
                              Severity: Minor
                              Found in owlmixin/__init__.py - About 4 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 stemWord has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                this.stemWord = function (w) {
                                  var stem;
                                  var suffix;
                                  var firstch;
                                  var origword = w;
                              Severity: Major
                              Found in docs/_static/language_data.js - About 4 hrs to fix

                                TList has 34 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class TList(
                                    list,
                                    DictsTransformer,
                                    JsonTransformer,
                                    YamlTransformer,
                                Severity: Minor
                                Found in owlmixin/owlcollections.py - About 4 hrs to fix

                                  TOption has 33 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class TOption(Generic[T]):
                                      def __init__(self, value):
                                          self.value = value
                                  
                                      def get(self) -> T:
                                  Severity: Minor
                                  Found in owlmixin/owloption.py - About 4 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language