Showing 3,825 of 16,019 total issues
HTMLElementTest
has 203 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@ExtendWith(AlertsExtension.class)
public class HTMLElementTest extends LoboUnitTest {
private static String createPageForGetOuterHTML(final String nodeTag, final String value, final boolean unclosed) {
return "<html>\n"
File DOMDocumentTest.java
has 1506 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File XMLHttpRequestTest.java
has 1479 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File JhromeTabbedPaneUI.java
has 1468 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
WindowEventHandlersImpl
has 194 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class WindowEventHandlersImpl implements WindowEventHandlers, GlobalEventHandlers {
private final EventTargetImpl eventTarget = new EventTargetImpl(null);
File ComputedCSSStyleDeclarationImpl.java
has 1415 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File BaseIcons.java
has 1401 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
XMLDocument
has 182 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@Slf4j
public class XMLDocument implements Document {
private static Document doc;
File CSSStyleSheetTest.java
has 1342 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File DTMNodeProxy.java
has 1318 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
CSSStyleDeclarationTest
has 173 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@ExtendWith(AlertsExtension.class)
public class CSSStyleDeclarationTest extends LoboUnitTest {
@Test
File HTMLElement2Test.java
has 1279 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File AbstractTheme.java
has 1250 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File GlobalEventHandlers.java
has 1236 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File HTMLFormElementTest.java
has 1219 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
ElementClientWidthTest
has 155 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@ExtendWith(AlertsExtension.class)
public class ElementClientWidthTest extends LoboUnitTest {
private static final String VALUE_ = "e == null ? e : (e.clientWidth <= 700 ? e.clientWidth :"
+ "e.clientWidth - document.documentElement.clientWidth)";
ElementClientHeightTest
has 154 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@ExtendWith(AlertsExtension.class)
public class ElementClientHeightTest extends LoboUnitTest {
private static final String VALUE_ = "e == null ? e : (e.clientHeight < 1000 ? e.clientHeight :"
+ "e.clientHeight - document.documentElement.clientHeight)";
ElementOffsetWidthTest
has 154 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@ExtendWith(AlertsExtension.class)
public class ElementOffsetWidthTest extends LoboUnitTest {
private static final String VALUE_ = "e == null ? e : (e.offsetWidth < 700 ? e.offsetWidth :"
+ "e.offsetWidth - document.documentElement.offsetWidth)";
Method readSegment
has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring. Open
Open
public void readSegment() throws IOException, JBIG2Exception {
if (JBIG2StreamDecoder.debug)
log.info("==== Read Segment Symbol Dictionary ====");
- 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 XHtmlParser.java
has 1158 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*