Showing 14,117 of 14,117 total issues
File CanvasRenderingContext2DTest.java
has 1121 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
AbstractTheme
has 145 methods (exceeds 20 allowed). Consider refactoring. Open
@EqualsAndHashCode(callSuper = true)
@Slf4j
@Data
public abstract class AbstractTheme extends MetalTheme {
File DOMNodeTest.java
has 1116 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
Method getClippingShape
has a Cognitive Complexity of 139 (exceeds 5 allowed). Consider refactoring. Open
protected Shape getClippingShape(final SVGElement clippedElement) {
Area clipArea = null;
final AffineTransform clipTransform = new AffineTransform();
if (hasChildNodes()) {
final NodeListImpl children = (NodeListImpl) getChildNodes();
- 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
HTMLSelectElementTest
has 142 methods (exceeds 20 allowed). Consider refactoring. Open
@ExtendWith(AlertsExtension.class)
public class HTMLSelectElementTest extends LoboUnitTest {
@Test
@Alerts({"3", "1", "3", "0"})
File NodeTest.java
has 1067 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
DocumentImpl
has 136 methods (exceeds 20 allowed). Consider refactoring. Open
public class DocumentImpl extends NodeImpl implements Document, XPathEvaluator {
private boolean strictErrorChecking = true;
private boolean xmlStandalone;
File EventTest.java
has 1043 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
HTMLDocumentTest
has 130 methods (exceeds 20 allowed). Consider refactoring. Open
@ExtendWith(AlertsExtension.class)
public class HTMLDocumentTest extends LoboUnitTest {
static final String[] JQUERY_CUSTOM_SELECTORS = {"div.submenu-last:last",
CSSStyleSheetTest
has 130 methods (exceeds 20 allowed). Consider refactoring. Open
@ExtendWith(AlertsExtension.class)
public class CSSStyleSheetTest extends LoboUnitTest {
@Test
DocumentTest
has 127 methods (exceeds 20 allowed). Consider refactoring. Open
@ExtendWith(AlertsExtension.class)
public class DocumentTest extends LoboUnitTest {
@Test
@Alerts({"2", "form1", "form2"})
File CSSStyleDeclaration3Test.java
has 983 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File DOMElementTest.java
has 979 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File HTMLScriptElementTest.java
has 976 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
Method readTag
has a Cognitive Complexity of 119 (exceeds 5 allowed). Consider refactoring. Open
private String readTag(final Node parent, final LineNumberReader reader) throws IOException {
final StringBuilder sb = new StringBuilder();
int chInt;
chInt = reader.read();
if (chInt != -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 DocumentImpl.java
has 956 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
File WalkerFactory.java
has 947 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
Method tokenize
has a Cognitive Complexity of 113 (exceeds 5 allowed). Consider refactoring. Open
void tokenize(final String pat, final List<String> targetStrings)
throws javax.xml.transform.TransformerException {
m_compiler.m_currentPattern = pat;
m_patternMapSize = 0;
- 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 HTMLAnchorElementTest.java
has 910 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* MIT License
*
* Copyright (c) 2014 - 2024 LoboEvolution
*
Method getContents
has 436 lines of code (exceeds 25 allowed). Consider refactoring. Open
public Object[][] getContents() {
return new Object[][]{
{"ERROR0000", "{0}"},