LoboEvolution/LoboEvolution

View on GitHub

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 {
        
    Severity: Major
    Found in LoboJTattoo/src/main/java/com/jtattoo/plaf/AbstractTheme.java - About 2 days to fix

      File DOMNodeTest.java has 1116 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * MIT License
       *
       * Copyright (c) 2014 - 2024 LoboEvolution
       *
      Severity: Major
      Found in LoboUnitTest/src/test/java/org/loboevolution/junit/DOMNodeTest.java - About 2 days to fix

        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();

        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
           *
          Severity: Major
          Found in LoboUnitTest/src/test/java/org/loboevolution/dom/NodeTest.java - About 2 days to fix

            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
               *
              Severity: Major
              Found in LoboUnitTest/src/test/java/org/loboevolution/event/EventTest.java - About 2 days to fix

                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"})
                    Severity: Major
                    Found in LoboUnitTest/src/test/java/org/loboevolution/dom/DocumentTest.java - About 2 days to fix

                      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
                         *
                        Severity: Major
                        Found in LoboUnitTest/src/test/java/org/loboevolution/junit/DOMElementTest.java - About 2 days to fix

                          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) {
                            Severity: Minor
                            Found in LoboHTML/src/main/java/org/loboevolution/html/parser/XHtmlParser.java - About 2 days to fix

                            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;

                                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}"},
                                  
                                  
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language