Showing 4,841 of 7,782 total issues
File jquery.js
has 7143 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery JavaScript Library v3.5.1
* https://jquery.com/
*
* Includes Sizzle.js
File moment.js
has 4580 lines of code (exceeds 250 allowed). Consider refactoring. Open
//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
File d3.js
has 3443 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function(){if (!Date.now) Date.now = function() {
return +new Date;
};
try {
document.createElement("div").style.setProperty("opacity", 0, "");
Function Sizzle
has 1734 lines of code (exceeds 25 allowed). Consider refactoring. Open
( function( window ) {
var i,
support,
Expr,
getText,
Method jjMoveNfa_2
has a Cognitive Complexity of 413 (exceeds 5 allowed). Consider refactoring. Open
private int jjMoveNfa_2(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 30;
int i = 1;
- 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
Method jjMoveNfa_1
has a Cognitive Complexity of 413 (exceeds 5 allowed). Consider refactoring. Open
private int jjMoveNfa_1(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 30;
int i = 1;
- 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
File AbstractComponent.java
has 2941 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* AbstractComponent.java
Purpose:
Description:
File ELParser.java
has 2789 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Generated By:JJTree&JavaCC: Do not edit this line. ELParser.java */
package org.zkoss.zel.impl.parser;
import java.io.StringReader;
import org.zkoss.zel.ELException;
File Listbox.java
has 2658 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Listbox.java
Purpose:
Description:
Function parseDate
has a Cognitive Complexity of 340 (exceeds 5 allowed). Consider refactoring. Open
parseDate(
txt: string,
fmt: string,
nonLenient?: boolean,
refval?: DateImpl,
- 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
File BinderImpl.java
has 2377 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* BinderImpl.java
Purpose:
Description:
Method parseItem
has a Cognitive Complexity of 303 (exceeds 5 allowed). Consider refactoring. Open
private Object parseItem(PageDefinition pgdef, NodeInfo parent, Element el, AnnotationHelper annHelper,
boolean bNativeContent, ParsingState parsingState) throws Exception {
final String nm = el.getLocalName();
final Namespace ns = el.getNamespace();
final String pref = ns != null ? ns.getPrefix() : "";
- 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
File Tree.java
has 2159 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Tree.java
Purpose:
Description:
File UiEngineImpl.java
has 2107 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* UiEngineImpl.java
Purpose:
Description:
File ELParserTokenManager.java
has 2104 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Generated By:JJTree&JavaCC: Do not edit this line. ELParserTokenManager.java */
package org.zkoss.zel.impl.parser;
import java.io.StringReader;
import org.zkoss.zel.ELException;
Method service
has a Cognitive Complexity of 276 (exceeds 5 allowed). Consider refactoring. Open
@SuppressWarnings({ "rawtypes", "unchecked" })
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_DATA_LOADING)) {
if (_rod) {
- 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
AbstractComponent
has 263 methods (exceeds 20 allowed). Consider refactoring. Open
public class AbstractComponent implements Component, ComponentCtrl, java.io.Serializable {
private static final Logger log = LoggerFactory.getLogger(AbstractComponent.class);
private static final long serialVersionUID = 20100719L;
/** Map(Class, Map(String name, Integer flags)). */
Method parseLang
has a Cognitive Complexity of 228 (exceeds 5 allowed). Consider refactoring. Open
private static void parseLang(Document doc, Locator locator, URL url, boolean addon) throws Exception {
final Element root = doc.getRootElement();
final String lang = IDOMs.getRequiredElementValue(root, "language-name");
final LanguageDefinition langdef;
final Device device;
- 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
File dom.ts
has 1579 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable @typescript-eslint/dot-notation */
/* dom.ts
Purpose:
Enhance jQuery
File d3.layout.js
has 1549 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function(){d3.layout = {};
// Implements hierarchical edge bundling using Holten's algorithm. For each
// input link, a path is computed that travels through the tree, up the parent
// hierarchy to the least common ancestor, and then back down to the destination
// node. Each path is simply an array of nodes.