Showing 4,841 of 7,782 total issues

Function debounce has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        static debounce<T, A extends unknown[], R>(func: (this: T, ...args: A) => R, wait: number,
                                        immediate?: boolean): (this: T, ...args: A) => R {
            var timeout, args, context, timestamp, result;
            if (null == wait) wait = 100;

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

    Method segmentInner has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @SuppressWarnings("unchecked")
        private FilterMap segmentInner(Map map) {
            final Map segFound = new HashMap();
            for (Iterator it = map.entrySet().iterator(); it.hasNext();) {
                final Map.Entry me = (Map.Entry)it.next();

      Method getByFallback has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static Locale getByFallback(Collection<Locale> values, Locale locale) {
              if (values.contains(locale))
                  return locale;
      
              final String lang = locale.getLanguage();
      Severity: Minor
      Found in zcommon/src/main/java/org/zkoss/util/Locales.java - About 1 hr to fix

        Method startElement has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void
            startElement(String nsURI, String lname, String tname, Attributes attrs)
            throws SAXException {
        //        if (log.finerable())
        //            log.finer(message("start element: nsURI=\"" + nsURI + "\", lname=" + lname + ", tname=" + tname
        Severity: Minor
        Found in zcommon/src/main/java/org/zkoss/idom/input/SAXHandler.java - About 1 hr to fix

          Method isAssignableFrom has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private static boolean isAssignableFrom(Class<?> src, Class<?> target) {
                  // src will always be an object
                  // Short-cut. null is always assignable to an object and in EL null
                  // can always be coerced to a valid value for a primitive
                  if (src == null) {
          Severity: Minor
          Found in zel/src/main/java/org/zkoss/zel/impl/util/ReflectionUtil.java - About 1 hr to fix

            Method DynamicExpression has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              final public void DynamicExpression() throws ParseException {
                                                           /*@bgen(jjtree) DynamicExpression */
              AstDynamicExpression jjtn000 = new AstDynamicExpression(JJTDYNAMICEXPRESSION);
              boolean jjtc000 = true;
              jjtree.openNodeScope(jjtn000);
            Severity: Minor
            Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

              Method MapEntry has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                final public void MapEntry() throws ParseException {
                                          /*@bgen(jjtree) MapEntry */
                AstMapEntry jjtn000 = new AstMapEntry(JJTMAPENTRY);
                boolean jjtc000 = true;
                jjtree.openNodeScope(jjtn000);
              Severity: Minor
              Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                Method setValue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public void setValue(EvaluationContext ctx, Object value)
                            throws ELException {
                        Target t = getTarget(ctx);
                        ctx.setPropertyResolved(false);
                        ELResolver resolver = ctx.getELResolver();
                Severity: Minor
                Found in zel/src/main/java/org/zkoss/zel/impl/parser/AstValue.java - About 1 hr to fix

                  Method BracketSuffix has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    final public void BracketSuffix() throws ParseException {
                                                         /*@bgen(jjtree) BracketSuffix */
                    AstBracketSuffix jjtn000 = new AstBracketSuffix(JJTBRACKETSUFFIX);
                    boolean jjtc000 = true;
                    jjtree.openNodeScope(jjtn000);
                  Severity: Minor
                  Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                    Method DeferredExpression has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      final public void DeferredExpression() throws ParseException {
                                                                     /*@bgen(jjtree) DeferredExpression */
                      AstDeferredExpression jjtn000 = new AstDeferredExpression(JJTDEFERREDEXPRESSION);
                      boolean jjtc000 = true;
                      jjtree.openNodeScope(jjtn000);
                    Severity: Minor
                    Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                      Method isAssignableFrom has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          static boolean isAssignableFrom(Class<?> src, Class<?> target) {
                              // src will always be an object
                              // Short-cut. null is always assignable to an object and in EL null
                              // can always be coerced to a valid value for a primitive
                              if (src == null) {
                      Severity: Minor
                      Found in zel/src/main/java/org/zkoss/zel/Util.java - About 1 hr to fix

                        Method startLongOp has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            @Listen("onClick=#start")
                            public void startLongOp() {
                                _running.set(true);
                                logThread("Start");
                        
                        

                          Method doAfterCompose has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              @Override
                              public void doAfterCompose(Component comp) throws Exception {
                                  super.doAfterCompose(comp);
                          
                                  final Desktop desktop = Executions.getCurrent().getDesktop();
                          Severity: Minor
                          Found in zktest/src/main/java/org/zkoss/zktest/test2/B85_ZK_3692.java - About 1 hr to fix

                            Method render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public void render(Treeitem treeitem, Object data, int index) throws Exception {
                                    Treerow row;
                                    if(treeitem.getTreerow()==null){// tree row not create yet.
                                        row = new Treerow();
                                        row.setParent(treeitem);

                              Method onMainCreate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public void onMainCreate(Event event) {
                                      final Execution exec = Executions.getCurrent();
                                      final String id = exec.getParameter("id");
                                      Listitem item = null;
                                      if (id != null) {
                              Severity: Minor
                              Found in zksandbox/src/main/java/org/zkoss/zksandbox/MainLayoutComposer.java - About 1 hr to fix

                                Method renderValue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    private String renderValue(char value) {
                                        StringBuilder buf = new StringBuilder();
                                        buf.append('\'');
                                        switch (value) {
                                        case '\'':

                                  Method addInV5 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private void addInV5(String cval) {
                                          final char[] seps1 = {'(', ' '}, seps2 = {')'};
                                          for (int j = 0, len = cval.length(); j < len;) {
                                              j = Strings.skipWhitespaces(cval, j);
                                              int k = Strings.nextSeparator(cval, j, seps1, true, true, false);

                                    Method componentToPath has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static final String componentToPath(Component comp, Component ref) {
                                            //Implementation Note:
                                            //The path being written is a bit different to Path, if ref
                                            //is not an space owner
                                            //For example, if comp is the space owner, "" is written.
                                    Severity: Minor
                                    Found in zk/src/main/java/org/zkoss/zk/ui/Components.java - About 1 hr to fix

                                      Method clone has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public Object clone() {
                                              // remove first.
                                              Collection<Callback> callbacks = new ArrayList<>(getCallback(AFTER_CLONED));
                                              for (Callback callback : new ArrayList<Callback>(callbacks)) {
                                                  removeCallback(AFTER_CLONED, callback);
                                      Severity: Minor
                                      Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 1 hr to fix

                                        Method decode has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                public List<AuRequest> decode(Object request, Desktop desktop) {
                                                    List<AuRequest> auRequests = _origin.decode(
                                                            new MultipartRequestWrapper((HttpServletRequest) request,
                                                                    _queryData), desktop);
                                        
                                        
                                        Severity: Minor
                                        Found in zk/src/main/java/org/zkoss/zk/au/http/AuMultipartUploader.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language