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
Function Sizzle
has 1510 lines of code (exceeds 25 allowed). Consider refactoring. Open
( function( window ) {
var i,
support,
Expr,
getText,
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._;
File __init__.py
has 970 lines of code (exceeds 250 allowed). Consider refactoring. Open
# coding: utf-8
# pylint: disable=too-many-lines
import inspect
import sys
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
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
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;
Function Stemmer
has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring. Open
var Stemmer = function() {
var step2list = {
ational: 'ate',
tional: 'tion',
- Read upRead up
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]
Function Stemmer
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Stemmer = function() {
var step2list = {
ational: 'ate',
tional: 'tion',
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
File searchtools.js
has 389 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* searchtools.js
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilities for the full-text search.
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
- Read upRead up
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 = {},
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" ?
TIterator
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
class TIterator(
DictsTransformer,
JsonTransformer,
YamlTransformer,
CsvTransformer,
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):
- Read upRead up
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;
TList
has 34 functions (exceeds 20 allowed). Consider refactoring. Open
class TList(
list,
DictsTransformer,
JsonTransformer,
YamlTransformer,
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: