Showing 4,841 of 7,782 total issues

Consider simplifying this complex logical expression.
Open

            if ((v = response.headers.get('ZK-Error'))
                && !zAu.onResponseError(response, v = zk.parseInt(v) ?? v)
                && (v == 5501 || v == 5502) //Handle only ZK's SC_OUT_OF_SEQUENCE or SC_ACTIVATION_TIMEOUT
                && zAu.confirmRetry('FAILED_TO_RESPONSE',
                    v == 5501 ? 'Request out of sequence' : 'Activation timeout')) {
Severity: Major
Found in zk/src/main/resources/web/js/zk/au.ts - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ((v = node?.clientWidth) && ofs[0] > (v + zkn.sumStyles('l', jqBorders)) && ofs[0] < (node.offsetWidth - zkn.sumStyles('r', jqBorders))
            || (v = node?.clientHeight) && ofs[1] > (v + zkn.sumStyles('t', jqBorders)) && ofs[1] < (node.offsetHeight - zkn.sumStyles('b', jqBorders))) //scrollbar
                return;
    Severity: Major
    Found in zk/src/main/resources/web/js/zk/drag.ts - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if (p && (!zk.isLoaded('zul.grid') || !(p instanceof zul.grid.Row))
                  && (!zk.isLoaded('zul.sel') || (!(p instanceof zul.sel.Listitem) && !(p instanceof zul.sel.Treerow))))
              tevt.stopPropagation();
      Severity: Major
      Found in zk/src/main/resources/web/js/zk/domtouch.ts - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                    if ((wgt._vflex === undefined || (wgt._vflexsz && wgt._vflex == 'min'))
                        && (wgt._hflex === undefined || (wgt._hflexsz && wgt._hflex == 'min')))
                        return;
        Severity: Major
        Found in zk/src/main/resources/web/js/zk/flex.ts - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                          if ((clearAllSiblings || isTargetWgt) && (isHorizontal && isRow) || (!isHorizontal && !isRow)) {
                              fcc.style.flexGrow = '';
                              jqFcc.removeClass(flexItemClass);
                              if (fcc != c && !c.style[dim])
                                  c.style[dim] = '';
          Severity: Major
          Found in zk/src/main/resources/web/js/zk/flex.ts - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                        if (v != 410 //not timeout (SC_GONE)
                            && !(reqInf.rtags && reqInf.rtags.isDummy) //ZK-3304: dummy request shouldn't reset timeout
                            && (!reqInf.rtags || !reqInf.rtags.onTimer || zk.timerAlive)) // Bug ZK-2720 only timer-keep-alive should reset the timeout
                            zAu._resetTimeout();
            Severity: Major
            Found in zk/src/main/resources/web/js/zk/au.ts - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                      if (p && (!zk.isLoaded('zul.grid') || !(p instanceof zul.grid.Row))
                          && (!zk.isLoaded('zul.sel') || (!(p instanceof zul.sel.Listitem) && !(p instanceof zul.sel.Treerow))))
                          tevt.stopPropagation();
              Severity: Major
              Found in zk/src/main/resources/web/js/zk/domtouch.ts - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if ((this.needV && domBottom <= viewBottom && domTop >= viewTop)
                            || (this.needH && domRight <= viewRight && domLeft >= viewLeft))
                            return true;
                        else
                            return false;
                Severity: Major
                Found in zul/src/main/resources/web/js/zul/Scrollbar.ts - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (dt.getFullYear() != y || dt.getMonth() != m || dt.getDate() != d
                                  || dt.getHours() != hr || dt.getMinutes() != min || dt.getSeconds() != sec) //ignore msec (safer though not accurate)
                                  return; //failed
                  Severity: Major
                  Found in zul/src/main/resources/web/js/zul/db/datefmt.ts - About 40 mins to fix

                    Method parse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        parse(Map<? super String, ? super String> map, String src, char separator, char quote, boolean asValue)
                    Severity: Minor
                    Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 35 mins to fix

                      Method parse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          parse(Map<? super String, ? super String> map, String src, char pairSeparator, char separator, char quote)
                      Severity: Minor
                      Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 35 mins to fix

                        Method parse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public static final Collection<String> parse(Collection<String> c, final String src,
                            char separator, boolean escBackslash, boolean parenthesis) {
                        Severity: Minor
                        Found in zcommon/src/main/java/org/zkoss/util/CollectionsX.java - About 35 mins to fix

                          Method resolveDependency has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              private static void resolveDependency(XMLResource xr,
                              List<Resource> rcs, Map<String, XMLResource> rcmap, Set<String> resolving, String elName) {
                          Severity: Minor
                          Found in zcommon/src/main/java/org/zkoss/util/resource/ClassLocator.java - About 35 mins to fix

                            Method toStringBuffer has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                toStringBuffer(StringBuffer sb, Map<? super String, ? super String> map, char quote, char separator, char pairSeparator) {
                            Severity: Minor
                            Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 35 mins to fix

                              Method next has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  next(String src, String delimiters, int j, boolean whitespaceAware,
                                  boolean parenthesis) {
                              Severity: Minor
                              Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 35 mins to fix

                                Method invoke has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    public Object invoke(ELContext ctx, Object base, Object method, Class[] paramTypes, Object[] params)
                                Severity: Minor
                                Found in zcommon/src/main/java/org/zkoss/xel/zel/XelELResolver.java - About 35 mins to fix

                                  Method attributeDecl has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public void attributeDecl(String eName, String aName, String type,
                                      String valueDefault, String value) throws SAXException {
                                  Severity: Minor
                                  Found in zcommon/src/main/java/org/zkoss/idom/input/SAXHandler.java - About 35 mins to fix

                                    Method cat5 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public static String cat5(Object o1, Object o2, Object o3, Object o4, Object o5) {
                                    Severity: Minor
                                    Found in zcommon/src/main/java/org/zkoss/xel/fn/StringFns.java - About 35 mins to fix

                                      Method format has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          public static String format(String message, String pubId, String sysId,
                                          int lineno, int colno) {
                                      Severity: Minor
                                      Found in zcommon/src/main/java/org/zkoss/xml/Locators.java - About 35 mins to fix

                                        Method getDateFormat has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            private static final DateFormat getDateFormat (String pattern, Locale locale, TimeZone timezone, String dateStyle, String timeStyle) {
                                        Severity: Minor
                                        Found in zcommon/src/main/java/org/zkoss/xel/fn/CommonFns.java - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language