Showing 4,841 of 7,782 total issues

Method setModel has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setModel(TreeModel<?> model) {
        if (model != null) {
            if (!(model instanceof TreeSelectableModel))
                throw new UiException(model.getClass() + " must implement " + TreeSelectableModel.class);

Severity: Major
Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 2 hrs to fix

    Method onListDataChange has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @SuppressWarnings("rawtypes")
        private void onListDataChange(ListDataEvent event) {
            int type = event.getType();
            // ZK-4549: should ignore before handling sorting
            if (getAttribute(Attributes.BEFORE_MODEL_ITEMS_RENDERED) != null
    Severity: Major
    Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 2 hrs to fix

      Function d3_scale_linear has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function d3_scale_linear(domain, range, interpolate, clamp) {
        var output,
            input;
      
        function rescale() {
      Severity: Major
      Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

        Function remove has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            remove: function( elem, types, handler, selector, mappedTypes ) {
        
                var j, origCount, tmp,
                    events, t, handleObj,
                    special, handlers, type, namespaces, origType,
        Severity: Major
        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

          Function configFromISO has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function configFromISO(config) {
                  var i,
                      l,
                      string = config._i,
                      match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
          Severity: Major
          Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 2 hrs to fix

            Function _doCmds has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    export function _doCmds(sid?: string): void { //called by mount.js, too
                        for (var fn: (() => void) | undefined; fn = doCmdFns.shift();)
                            fn();
            
                        var ex: Error | undefined, j = 0, rid = responseId;
            Severity: Major
            Found in zk/src/main/resources/web/js/zk/au.ts - About 2 hrs to fix

              File ELProcessor.java has 253 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * Licensed to the Apache Software Foundation (ASF) under one or more
               * contributor license agreements.  See the NOTICE file distributed with
               * this work for additional information regarding copyright ownership.
               * The ASF licenses this file to You under the Apache License, Version 2.0
              Severity: Minor
              Found in zel/src/main/java/org/zkoss/zel/ELProcessor.java - About 2 hrs to fix

                File Captcha.java has 253 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* Captcha.java
                
                    Purpose:
                        
                    Description:
                Severity: Minor
                Found in zul/src/main/java/org/zkoss/zul/Captcha.java - About 2 hrs to fix

                  File SaveFormBindingImpl.java has 252 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /* SaveFormBindingImpl.java
                  
                      Purpose:
                  
                      Description:
                  Severity: Minor
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/SaveFormBindingImpl.java - About 2 hrs to fix

                    Method myLocate has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private static final Object
                        myLocate(String file, Locale locale, Locator locator, boolean asStream) {
                            if (locale == null)
                                locale = Locales.getCurrent();
                    
                    
                    Severity: Major
                    Found in zcommon/src/main/java/org/zkoss/util/resource/Locators.java - About 2 hrs to fix

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

                          public void setValue(ELContext context, Object base, Object property,
                                  Object value) {
                              if (context == null) {
                                  throw new NullPointerException();
                              }
                      Severity: Major
                      Found in zel/src/main/java/org/zkoss/zel/BeanELResolver.java - About 2 hrs to fix

                        Method LambdaExpression has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          final public void LambdaExpression() throws ParseException {
                                                                     /*@bgen(jjtree) LambdaExpression */
                          AstLambdaExpression jjtn000 = new AstLambdaExpression(JJTLAMBDAEXPRESSION);
                          boolean jjtc000 = true;
                          jjtree.openNodeScope(jjtn000);
                        Severity: Major
                        Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 2 hrs to fix

                          Method importFileName has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public void importFileName() throws SuspendNotAllowedException, InterruptedException {
                                  final Window w = new Window();
                                  w.setTitle("Import File Name");
                                  w.setWidth("300px");
                                  w.setClosable(true);
                          Severity: Major
                          Found in zktest/src/main/java/org/zkoss/zktest/test2/MainLayout.java - About 2 hrs to fix

                            Method splitListenAnnotationValues has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private static String[][] splitListenAnnotationValues(String str) {
                                    List<String[]> result = new ArrayList<String[]>();
                                    int len = str.length();
                                    boolean inSqBracket = false;
                                    boolean inQuote = false;
                            Severity: Major
                            Found in zk/src/main/java/org/zkoss/zk/ui/select/Selectors.java - About 2 hrs to fix

                              Method init has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  @SuppressWarnings("deprecation")
                                  public void init() throws ServletException {
                                      final ServletConfig config = getServletConfig();
                                      String param = config.getInitParameter("log-level");
                                      if (param != null && param.length() > 0) {
                              Severity: Major
                              Found in zk/src/main/java/org/zkoss/zk/ui/http/DHtmlLayoutServlet.java - About 2 hrs to fix

                                Method init has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void init(final Page page, final boolean evalHeaders) {
                                        final PageCtrl pageCtrl = (PageCtrl) page;
                                        pageCtrl.init(new PageConfig() {
                                            public String getId() {
                                                return _id;
                                Severity: Major
                                Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/PageDefinition.java - About 2 hrs to fix

                                  Method onListModelDataChange has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      @SuppressWarnings("unchecked")
                                      private void onListModelDataChange(ListDataEvent event) {
                                          final ListModel<?> model = event.getModel();
                                          int type = event.getType();
                                          int index0 = event.getIndex0();

                                    Function buildFragment has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function buildFragment( elems, context, scripts, selection, ignored ) {
                                        var elem, tmp, tag, wrap, attached, j,
                                            fragment = context.createDocumentFragment(),
                                            nodes = [],
                                            i = 0,
                                    Severity: Major
                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

                                      Function panel$mold$ has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function panel$mold$(out, skipper) {
                                          var uuid = this.uuid,
                                              title = this.getTitle(),
                                              caption = this.caption,
                                              btnRenderer = zul.wgt.ButtonRenderer,
                                      Severity: Major
                                      Found in zul/src/main/resources/web/js/zul/wnd/mold/panel.js - About 2 hrs to fix

                                        Function str has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function str(key, holder) {
                                        
                                        // Produce a string from holder[key].
                                        
                                                var i,          // The loop counter.
                                        Severity: Major
                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.json.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language