LoboEvolution/LoboEvolution

View on GitHub

Showing 14,117 of 14,117 total issues

File JhromeTabbedPaneUI.java has 1468 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * MIT License
 *
 * Copyright (c) 2014 - 2024 LoboEvolution
 *

    WindowEventHandlersImpl has 194 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class WindowEventHandlersImpl implements WindowEventHandlers, GlobalEventHandlers {
    
        private final EventTargetImpl eventTarget = new EventTargetImpl(null);
    
    
    

      File BaseIcons.java has 1401 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * MIT License
       *
       * Copyright (c) 2014 - 2024 LoboEvolution
       *
      Severity: Major
      Found in LoboJTattoo/src/main/java/com/jtattoo/plaf/BaseIcons.java - About 3 days to fix

        XMLDocument has 182 methods (exceeds 20 allowed). Consider refactoring.
        Open

        @Slf4j
        public class XMLDocument implements Document {
        
            private static Document doc;
        
        
        Severity: Major
        Found in LoboHTML/src/main/java/org/loboevolution/html/js/xml/XMLDocument.java - About 3 days to fix

          File CSSStyleSheetTest.java has 1342 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
           * MIT License
           *
           * Copyright (c) 2014 - 2024 LoboEvolution
           *

            File DTMNodeProxy.java has 1318 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*
             * MIT License
             *
             * Copyright (c) 2014 - 2024 LoboEvolution
             *

              CSSStyleDeclarationTest has 173 methods (exceeds 20 allowed). Consider refactoring.
              Open

              @ExtendWith(AlertsExtension.class)
              public class CSSStyleDeclarationTest extends LoboUnitTest {
              
              
                  @Test

                File HTMLElement2Test.java has 1279 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*
                 * MIT License
                 *
                 * Copyright (c) 2014 - 2024 LoboEvolution
                 *

                  File AbstractTheme.java has 1250 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*
                   * MIT License
                   *
                   * Copyright (c) 2014 - 2024 LoboEvolution
                   *
                  Severity: Major
                  Found in LoboJTattoo/src/main/java/com/jtattoo/plaf/AbstractTheme.java - About 3 days to fix

                    File GlobalEventHandlers.java has 1236 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*
                     * MIT License
                     *
                     * Copyright (c) 2014 - 2024 LoboEvolution
                     *

                      File HTMLFormElementTest.java has 1219 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*
                       * MIT License
                       *
                       * Copyright (c) 2014 - 2024 LoboEvolution
                       *

                        ElementClientWidthTest has 155 methods (exceeds 20 allowed). Consider refactoring.
                        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)";

                          ElementOffsetWidthTest has 154 methods (exceeds 20 allowed). Consider refactoring.
                          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)";

                            ElementClientHeightTest has 154 methods (exceeds 20 allowed). Consider refactoring.
                            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)";

                              Method readSegment has a Cognitive Complexity of 149 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public void readSegment() throws IOException, JBIG2Exception {
                              
                                      if (JBIG2StreamDecoder.debug)
                                          log.info("==== Read Segment Symbol Dictionary ====");
                              
                              

                              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 1156 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*
                               * MIT License
                               *
                               * Copyright (c) 2014 - 2024 LoboEvolution
                               *
                              Severity: Major
                              Found in LoboHTML/src/main/java/org/loboevolution/html/parser/XHtmlParser.java - About 2 days to fix

                                CSSStyleDeclaration3Test has 150 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                @ExtendWith(AlertsExtension.class)
                                public class CSSStyleDeclaration3Test extends LoboUnitTest {
                                
                                
                                    @Test

                                  Method layoutContainer has a Cognitive Complexity of 142 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                          @Override
                                          public void layoutContainer(final Container parent) {
                                              final int tabPlacement = tabPane.getTabPlacement();
                                              final int tc = tabPane.getTabCount();
                                              final Insets insets = tabPane.getInsets();
                                  Severity: Minor
                                  Found in LoboJTattoo/src/main/java/com/jtattoo/plaf/BaseTabbedPaneUI.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 HTMLDocumentTest.java has 1128 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*
                                   * MIT License
                                   *
                                   * Copyright (c) 2014 - 2024 LoboEvolution
                                   *

                                    File HTMLOptionElement2Test.java has 1124 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*
                                     * MIT License
                                     *
                                     * Copyright (c) 2014 - 2024 LoboEvolution
                                     *
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language