Showing 4,841 of 7,782 total issues

Function bind has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function bind(group, groupData) {
    var i,
        n = group.length,
        m = groupData.length,
        n0 = Math.min(n, m),
Severity: Major
Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

    Function add has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        add: function( elem, types, handler, data, selector ) {
    
            var handleObjIn, eventHandle, 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 unformat has 72 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          unformat(fmt: string, val: string, ignoreLocale: boolean, localizedSymbols?: zk.LocalizedSymbols): {raw: string; divscale: number} {
              if (!val) return {raw: val, divscale: 0};
      
              // localized symbols
              localizedSymbols = localizedSymbols || {
      Severity: Major
      Found in zk/src/main/resources/web/js/zk/fmt/numfmt.ts - About 2 hrs to fix

        File DebuggerComposer.java has 285 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /** DebuggerComposer.java.
        
            Purpose:
                
            Description:

          File Property.java has 285 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* Property.java
          
              Purpose:
                  
              Description:
          Severity: Minor
          Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/Property.java - About 2 hrs to fix

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

                public void render(final Row row, final Object data, final int index) {
                    final Rows rows = (Rows) row.getParent();
                    final Grid grid = (Grid) rows.getParent();
                    final int size = grid.getModel().getSize();
                    //B70-ZK-2555: in order to handle dynamic template name
            Severity: Major
            Found in zkbind/src/main/java/org/zkoss/bind/impl/BindRowRenderer.java - About 2 hrs to fix

              File ListModelSet.java has 285 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

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

                File Utils.java has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

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

                  Function progressbox has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          static progressbox(id: string, msg: string, mask?: boolean, icon?: string, opts?: Partial<ProgressboxOptions>): void {
                              if (mask && zk.Page.contained.length) {
                                  for (var c = zk.Page.contained.length, e = zk.Page.contained[--c]; e; e = zk.Page.contained[--c]) {
                                      if (!e._applyMask)
                                          e._applyMask = new zk.eff.Mask({
                  Severity: Major
                  Found in zk/src/main/resources/web/js/zk/utl.ts - About 2 hrs to fix

                    Maps has 25 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    public class Maps {
                        private static final Logger log = LoggerFactory.getLogger(Maps.class);
                    
                        /**
                         * Reads a property list (key and element pairs) from the input stream,
                    Severity: Minor
                    Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 2 hrs to fix

                      ArraysX has 25 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      public class ArraysX {
                          /** Converts an array to a readable string (for debugging purpose).
                           */
                          public final static String toString(Object[] array) {
                              if (array == null)
                      Severity: Minor
                      Found in zcommon/src/main/java/org/zkoss/util/ArraysX.java - About 2 hrs to fix

                        AbstractGroup has 25 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        public abstract class AbstractGroup extends AbstractItem implements Group {
                            /** The list of the children. Never null.
                             */
                            protected List<Item> _children;
                            
                        Severity: Minor
                        Found in zcommon/src/main/java/org/zkoss/idom/impl/AbstractGroup.java - About 2 hrs to fix

                          SimpleCharStream has 25 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          @SuppressWarnings("all") // Ignore warnings in generated code
                          public class SimpleCharStream
                          {
                          /** Whether parser is static. */
                            public static final boolean staticFlag = false;
                          Severity: Minor
                          Found in zel/src/main/java/org/zkoss/zel/impl/parser/SimpleCharStream.java - About 2 hrs to fix

                            WebManager has 25 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            public class WebManager {
                                private static final Logger log = LoggerFactory.getLogger(WebManager.class);
                            
                                /** A context attribute for storing an instance of this class. */
                                /*package*/ static final String ATTR_WEB_MANAGER = "javax.zkoss.zk.ui.WebManager";
                            Severity: Minor
                            Found in zk/src/main/java/org/zkoss/zk/ui/http/WebManager.java - About 2 hrs to fix

                              AbstractPage has 25 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              public abstract class AbstractPage implements Page, PageCtrl, java.io.Serializable {
                                  private static final Logger log = LoggerFactory.getLogger(AbstractPage.class);
                              
                                  /** The first root component. */
                                  private transient AbstractComponent _firstRoot;
                              Severity: Minor
                              Found in zk/src/main/java/org/zkoss/zk/ui/AbstractPage.java - About 2 hrs to fix

                                WebApp has 25 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                public interface WebApp extends Scope, Locator {
                                    /** Returns the application name, never null.
                                     * Developer can set it to any name that describes his application.
                                     * <p>Default: ZK
                                     */
                                Severity: Minor
                                Found in zk/src/main/java/org/zkoss/zk/ui/WebApp.java - About 2 hrs to fix

                                  Calendar has 25 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  public class Calendar extends XulElement implements Constrainted {
                                      private ZonedDateTime _value;
                                      private TimeZone _defaultTzone = TimeZones.getCurrent();
                                      private boolean _weekOfYear;
                                      private boolean _showTodayLink = false;
                                  Severity: Minor
                                  Found in zul/src/main/java/org/zkoss/zul/Calendar.java - About 2 hrs to fix

                                    AbstractGroupsModel has 25 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    public abstract class AbstractGroupsModel<D, H, F, E>
                                            implements GroupsModel<D, H, F>, GroupsSelectableModel<E>, java.io.Serializable {
                                        private transient List<GroupsDataListener> _listeners = new LinkedList<GroupsDataListener>();
                                    
                                        /** The current selection. */
                                    Severity: Minor
                                    Found in zul/src/main/java/org/zkoss/zul/AbstractGroupsModel.java - About 2 hrs to fix

                                      libbcmath has 25 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      var libbcmath = {
                                          PLUS: "+",
                                          MINUS: "-",
                                          BASE: 10,
                                          scale: 0,
                                      Severity: Minor
                                      Found in zktest/src/main/webapp/test2/js/zk-3913-PDF417lib.js - About 2 hrs to fix

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

                                            public void render(final Comboitem item, final Object data, final int index) throws Exception {
                                                final Combobox cb = (Combobox) item.getParent();
                                                final ListModel<?> model = cb.getModel();
                                                final int size = model.getSize();
                                                final Template tm = resolveTemplate(cb, item, data, index, size, "model");
                                        Severity: Major
                                        Found in zkbind/src/main/java/org/zkoss/bind/impl/BindComboitemRenderer.java - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language