Showing 4,841 of 7,782 total issues

Function humanize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function humanize(argWithSuffix, argThresholds) {
        if (!this.isValid()) {
            return this.localeData().invalidDate();
        }

Severity: Minor
Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

    Function isDurationValid has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function isDurationValid(m) {
            var key,
                unitHasDecimal = false,
                i,
                orderLen = ordering.length;
    Severity: Minor
    Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

      Function sync has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              sync(): boolean {
                  var node = this.node, $node = jq(node);
                  if (!node || !$node.zk.isVisible(true)) {
                      if (this.opts.stackup && node) {
                          if (!this.stackup)
      Severity: Minor
      Found in zk/src/main/resources/web/js/zk/effect.ts - About 1 hr to fix

        Function constructor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                constructor(opts: EffectFullMaskOptions) {
                    super();
                    opts = eff._skuOpts(opts);
                    var mask = this.mask = jq(opts.mask || [], zk)[0];
                    if (this.mask) {
        Severity: Minor
        Found in zk/src/main/resources/web/js/zk/effect.ts - About 1 hr to fix

          Function throttle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  static throttle<T, A extends unknown[], R>(func: (this: T, ...args: A) => R, wait: number):
                              (this: T, ...args: A) => R {
                      var timeout: number | undefined, context, args, result,
                          previous = 0,
                          later = function (): void {
          Severity: Minor
          Found in zk/src/main/resources/web/js/zk/utl.ts - About 1 hr to fix

            Function ensureSingleTsdoc has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function ensureSingleTsdoc(node: PropertyNameNonComputedNode, commentNode: TSESTree.Node | TSESTree.Token): TextRange | undefined {
                        const comments = sourceCode.getCommentsBefore(commentNode);
                        const tsdocs = new Array<TextRange>();
                        const tsdocLocs = new Array<string>();
                        for (const comment of comments) {
            Severity: Minor
            Found in eslint-plugin-zk/src/rules/tsdocValidation.ts - About 1 hr to fix

              Method parse0 has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  parse0(Map map, String src, char pairSeparator, char separator, char quote, boolean asValue,
                  boolean parenthesis, boolean multiple)
              Severity: Major
              Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if (!(newVal instanceof Element) && !(newVal instanceof Text)
                            && !(newVal instanceof CData) && !(newVal instanceof Comment)
                            && !(newVal instanceof EntityReference) && !(newVal instanceof Binary)
                            && !(newVal instanceof ProcessingInstruction))
                                throw new DOMException(HIERARCHY_REQUEST_ERR, "Invalid type", getLocator());
                Severity: Major
                Found in zcommon/src/main/java/org/zkoss/idom/impl/AbstractGroup.java - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if ((cc < '0' || cc > '9') && (cc < 'a' || cc > 'z') && (cc < 'A' || cc > 'Z') && cc != '_')
                                  return false;
                  Severity: Major
                  Found in zk/src/main/java/org/zkoss/zk/ui/sys/Names.java - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if ((cc < 'a' || cc > 'z') && (cc < 'A' || cc > 'Z') && (cc < '0' || cc > '9') && cc != '_')
                                    throw new UiException("Illegal character, " + cc + ", not allowed in uuid, " + uuid);
                    Severity: Major
                    Found in zk/src/main/java/org/zkoss/zk/ui/sys/ComponentsCtrl.java - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if (_recovering || _disabled || page == null || page instanceof VolatilePage || !_exec.isAsyncUpdate(page)
                                      || _invalidated.contains(comp) || isCUDisabled(comp))
                                  return null; //nothing to do
                      Severity: Major
                      Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiVisualizer.java - About 1 hr to fix

                        Method addFormSaveBindings has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public void addFormSaveBindings(Component comp, String id, String saveExpr, String[] beforeCmds, String[] afterCmds,
                                    Map<String, Object> bindingArgs, String validatorExpr, Map<String, Object> validatorArgs);
                        Severity: Major
                        Found in zkbind/src/main/java/org/zkoss/bind/Binder.java - About 1 hr to fix

                          Method addPropertyLoadBindings has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public void addPropertyLoadBindings(Component comp, String attr, String loadExpr, String[] beforeCmds,
                                      String[] afterCmds, Map<String, Object> bindingArgs, String converterExpr,
                                      Map<String, Object> converterArgs);
                          Severity: Major
                          Found in zkbind/src/main/java/org/zkoss/bind/Binder.java - About 1 hr to fix

                            Method newInitPropertyBinding has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                protected InitPropertyBinding newInitPropertyBinding(Component comp, String attr, String loadAttr,
                                        Class<?> attrType, String initExpr, Map<String, Object> bindingArgs, String converterExpr,
                                        Map<String, Object> converterArgs) {
                            Severity: Major
                            Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                              Method addFormSaveBindings has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  public void addFormSaveBindings(Component comp, String id, String saveExpr, String[] beforeCmds, String[] afterCmds,
                                          Map<String, Object> bindingArgs, String validatorExpr, Map<String, Object> validatorArgs) {
                              Severity: Major
                              Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                                Method addFormSaveBindings0 has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    private void addFormSaveBindings0(Component comp, String formId, String saveExpr, String[] beforeCmds,
                                            String[] afterCmds, Map<String, Object> bindingArgs, String validatorExpr,
                                            Map<String, Object> validatorArgs) {
                                Severity: Major
                                Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                                  Method addPropertyLoadBindings0 has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      private void addPropertyLoadBindings0(Component comp, String attr, String loadExpr, String[] beforeCmds,
                                              String[] afterCmds, Map<String, Object> bindingArgs, String converterExpr,
                                              Map<String, Object> converterArgs) {
                                  Severity: Major
                                  Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                                    Method addPropertyLoadBindings has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public void addPropertyLoadBindings(Component comp, String attr, String loadExpr, String[] beforeCmds,
                                                String[] afterCmds, Map<String, Object> bindingArgs, String converterExpr,
                                                Map<String, Object> converterArgs) {
                                    Severity: Major
                                    Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                                      Method newSaveFormBinding has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          protected SaveFormBinding newSaveFormBinding(Component comp, String formId, String saveExpr,
                                                  ConditionType conditionType, String command, Map<String, Object> bindingArgs, String validatorExpr,
                                                  Map<String, Object> validatorArgs) {
                                      Severity: Major
                                      Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                                        Method get has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            public static Media[] get(Map<String, Object> params, String message, String title, String accept, int max,
                                                    int maxsize, boolean alwaysNative, EventListener<UploadEvent> listener) {
                                        Severity: Major
                                        Found in zul/src/main/java/org/zkoss/zul/Fileupload.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language