AlexRogalskiy/java-patterns

View on GitHub

Showing 70 of 70 total issues

Avoid deeply nested control flow statements.
Open

                        if (linkContextId === 'additional') {
                            var mainToggler = activeMenu.querySelector(
                                '.chapter.' + linkContextId + ' div.menu-toggler'
                            );
                            if (mainToggler) {
Severity: Major
Found in packages/changelog/docs/js/menu.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if (COMPONENTS[j].name === newNodes[i].name) {
                                    document.location.href = currentLocation.origin + currentLocation.pathname.replace(ACTUAL_COMPONENT.name, newNodes[i].name);
                                }
    Severity: Major
    Found in packages/github-client/docs/js/tree.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                if (s1.charAt(i - 1) !== s2.charAt(j - 1)) {
                  newValue = Math.min(Math.min(newValue, lastValue), costs[j]) + 1
                }
      Severity: Major
      Found in packages/contributors-view/src/helpers/similarity.ts - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (toggler) {
                                    toggler.click();
                                }
        Severity: Major
        Found in packages/changelog/docs/js/menu.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if (toggler) {
                                  toggler.click();
                              }
          Severity: Major
          Found in packages/schema-diff/docs/js/menu.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                for(attr in value.attributes) {
                                    if (DIRECTIVES[i].selector.indexOf(attr) !== -1) {
                                        newNode.font = {
                                            multi: 'html'
                                        };
            Severity: Major
            Found in packages/github-client/docs/js/tree.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if (parentUl) {
                                          parentChapterMenu = parentUl.parentNode;
                                          if (parentChapterMenu) {
                                              var toggler = parentChapterMenu.querySelector('.menu-toggler'),
                                                  elementIconChild =
              Severity: Major
              Found in packages/schema-diff/docs/js/menu.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if (toggler) {
                                        toggler.click();
                                    }
                Severity: Major
                Found in packages/github-client/docs/js/menu.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if (parentUl) {
                                              parentChapterMenu = parentUl.parentNode;
                                              if (parentChapterMenu) {
                                                  var toggler = parentChapterMenu.querySelector('.menu-toggler'),
                                                      elementIconChild =
                  Severity: Major
                  Found in packages/changelog/docs/js/menu.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if (linkContextId === 'additional') {
                                                var mainToggler = activeMenu.querySelector(
                                                    '.chapter.' + linkContextId + ' div.menu-toggler'
                                                );
                                                if (mainToggler) {
                    Severity: Major
                    Found in packages/schema-diff/docs/js/menu.js - About 45 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language