Showing 3,814 of 16,026 total issues
File HTMLElementTest.java
has 3897 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
GlobalEventHandlers
has 528 methods (exceeds 20 allowed). Consider refactoring. Open
public interface GlobalEventHandlers extends EventTarget {
/**
* Fires when the user aborts the download.
*
* @return the onabort
File BaseTabbedPaneUI.java
has 3287 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File CSSStyleDeclarationTest.java
has 2272 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
CSSStyleDeclarationImpl
has 302 methods (exceeds 20 allowed). Consider refactoring. Open
public class CSSStyleDeclarationImpl implements CSSStyleDeclaration {
private static final Pattern DOUBLE_PATTERN = Pattern.compile(
"[\\x00-\\x20]*[+-]?(NaN|Infinity|((((\\d+)(\\.)?((\\d+)?)" +
"([eE][+-]?(\\d+))?)|(\\.((\\d+))([eE][+-]?(\\d+))?)|" +
File DocumentTest.java
has 2200 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File ComputedCSSStyleDeclarationTest.java
has 2161 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
Method parseToken
has a Cognitive Complexity of 285 (exceeds 5 allowed). Consider refactoring. Open
private int parseToken(final Node parent, final LineNumberReader reader, final Set<HTMLTag> stopTags,
final LinkedList<String> ancestors) throws IOException, StopException {
final Document doc = this.document;
final HTMLDocumentImpl htmlDoc = (HTMLDocumentImpl) doc;
final StringBuilder textSb = this.readUpToTagBegin(reader);
- 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
ComputedCSSStyleDeclarationImpl
has 284 methods (exceeds 20 allowed). Consider refactoring. Open
public class ComputedCSSStyleDeclarationImpl implements ComputedCSSStyleDeclaration {
private final HTMLElementImpl element;
private final Window window;
File HTMLDocumentTest.java
has 2023 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File HTMLSelectElementTest.java
has 1960 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
DTMNodeProxy
has 264 methods (exceeds 20 allowed). Consider refactoring. Open
public class DTMNodeProxy
implements Node,
Document,
Text,
Element,
File CSSSelectorTest.java
has 1934 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
Method setProperties
has a Cognitive Complexity of 254 (exceeds 5 allowed). Consider refactoring. Open
public void setProperties(final Properties props) {
if (props != null) {
if (props.getProperty("windowDecoration") != null) {
windowDecoration = props.getProperty("windowDecoration").trim().equalsIgnoreCase("on");
}
- 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 readBitmap
has a Cognitive Complexity of 250 (exceeds 5 allowed). Consider refactoring. Open
public void readBitmap(final boolean useMMR, final int template, final boolean typicalPredictionGenericDecodingOn, final boolean useSkip, final JBIG2Bitmap skipBitmap, final short[] adaptiveTemplateX, final short[] adaptiveTemplateY, final int mmrDataLength) throws IOException, JBIG2Exception {
if (useMMR) {
//MMRDecoder mmrDecoder = MMRDecoder.getInstance();
- 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
CSS2Properties
has 244 methods (exceeds 20 allowed). Consider refactoring. Open
public interface CSS2Properties extends CSSProperties {
/**
* <p>getAzimuth.</p>
*
File HTMLInputElementTest.java
has 1715 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
HTMLElementImpl
has 227 methods (exceeds 20 allowed). Consider refactoring. Open
@Slf4j
public class HTMLElementImpl extends ElementImpl implements HTMLElement, GlobalEventHandlers, CSSPropertiesContext {
private ComputedCSSStyleDeclaration computedStyles;
File CSSStyleDeclarationImpl.java
has 1585 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File RBlockViewport.java
has 1559 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*