Showing 4,841 of 7,782 total issues

Method readMethod has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private int readMethod(TypeCollector classVisitor, char[] c, int u) {
            int v;
            int w;
            int j;
            String attrName;

    Method group has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public boolean group(boolean ascending) {
            final String dir = getSortDirection();
            if (ascending) {
                if ("ascending".equals(dir))
                    return false;
    Severity: Major
    Found in zul/src/main/java/org/zkoss/zul/Column.java - About 3 hrs to fix

      Method onEvent has 76 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void onEvent(Event event) {
                  if (inPagingMold() && event instanceof PagingEvent) {
                      PagingEvent pe = (PagingEvent) event;
                      if (_model instanceof Pageable) {
                          ((Pageable) _model).setPageSize(pe.getPageable().getPageSize());
      Severity: Major
      Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 3 hrs to fix

        Method get has 76 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static final <V> V get(ResourceCache<V> cache, ServletContext ctx, String path, Object extra) {
                //20050905: Tom Yeh
                //We don't need to handle the default name if user specifies only a dir
                //because it is handled by the container directly
                //And, web  developer has to specify <welcome-file> in web.xml
        Severity: Major
        Found in zweb/src/main/java/org/zkoss/web/util/resource/ResourceCaches.java - About 3 hrs to fix

          Function axis has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function axis(selection) {
              selection.each(function(d, i, j) {
                var g = d3.select(this);
          
                // If selection is a transition, create subtransitions.
          Severity: Major
          Found in zktest/src/main/webapp/js/d3.js - About 3 hrs to fix

            File gulpfile.js has 293 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // @ts-check
            const fs = require('fs');
            const path = require('path');
            const gulp = require('gulp');
            const minimist = require('minimist');
            Severity: Minor
            Found in gulpfile.js - About 3 hrs to fix

              File ListModelArrayProxy.java has 292 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /** ListModelArrayProxy.java.
              
                  Purpose:
              
                  Description:
              Severity: Minor
              Found in zkbind/src/main/java/org/zkoss/bind/proxy/ListModelArrayProxy.java - About 3 hrs to fix

                SAXBuilder has 26 methods (exceeds 20 allowed). Consider refactoring.
                Open

                public class SAXBuilder {
                    private static final Logger log = LoggerFactory.getLogger(SAXBuilder.class);
                
                    /** The parser. */
                    private final SAXParser _parser;
                Severity: Minor
                Found in zcommon/src/main/java/org/zkoss/idom/input/SAXBuilder.java - About 3 hrs to fix

                  ContextParamVM has 26 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  public class ContextParamVM {
                  
                      String applicationScope;
                      String sessionScope;
                      String desktopScope;
                  Severity: Minor
                  Found in zktest/src/main/java/org/zkoss/zktest/bind/basic/ContextParamVM.java - About 3 hrs to fix

                    WpdExtendlet has 26 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    public class WpdExtendlet extends AbstractExtendlet<Object> {
                        //source map
                        public static final String SOURCE_MAP_JAVASCRIPT_PATH = "$zk$sourcemapJsPath"; // for HtmlPageRenders
                        private static final String SOURCE_MAP_DIVIDED_WPDS = "$zk$dividedWPDs";
                        private static final String SOURCE_MAP_DIVIDED_WPDS_NUMBER = "$zk$dividedWPDsNum";
                    Severity: Minor
                    Found in zk/src/main/java/org/zkoss/zk/ui/http/WpdExtendlet.java - About 3 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if (_recovering || _disabled || (newpg == null && oldpg == null)
                                      || (newpg == null && (oldpg instanceof VolatilePage || !_exec.isAsyncUpdate(oldpg))) //detach from loading pg
                                      || (oldpg == null && (newpg instanceof VolatilePage || !_exec.isAsyncUpdate(newpg))) //attach to loading pg
                                      || isCUDisabled(comp) || (oldparent != null && isCUDisabled(oldparent)))
                                  return; //to avoid redundant AuRemove
                      Severity: Critical
                      Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiVisualizer.java - About 3 hrs to fix

                        Button has 26 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        public class Button extends LabelImageElement implements org.zkoss.zk.ui.ext.Disable,
                                org.zkoss.zk.ui.ext.Uploadable {
                            private AuxInfo _auxinf;
                        
                            static {
                        Severity: Minor
                        Found in zul/src/main/java/org/zkoss/zul/Button.java - About 3 hrs to fix

                          Treecol has 26 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          public class Treecol extends HeaderElement {
                              private static final long serialVersionUID = 20110131122933L;
                          
                              private String _sortDir = "natural";
                              private transient Comparator<?> _sortAsc, _sortDsc;
                          Severity: Minor
                          Found in zul/src/main/java/org/zkoss/zul/Treecol.java - About 3 hrs to fix

                            Method toNumberOnly has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                protected Object[] toNumberOnly(String val) {
                                    if (val == null)
                                        return new Object[] { null, null };
                            
                                    final DecimalFormatSymbols symbols = new DecimalFormatSymbols(getDefaultLocale());
                            Severity: Major
                            Found in zul/src/main/java/org/zkoss/zul/impl/NumberInputElement.java - About 3 hrs to fix

                              XulElement has 26 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              public abstract class XulElement extends HtmlBasedComponent {
                                  /** AuxInfo: use a class (rather than multiple member) to save footprint */
                                  private AuxInfo _auxinf;
                              
                                  /** Returns what keystrokes to intercept.
                              Severity: Minor
                              Found in zul/src/main/java/org/zkoss/zul/impl/XulElement.java - About 3 hrs to fix

                                GroupsModelArray has 26 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                public class GroupsModelArray<D, H, F, E> extends AbstractGroupsModel<D, H, F, E>
                                        implements GroupsSortableModel<D>, ComponentCloneListener, Cloneable {
                                
                                    /**
                                     * member field to store native (original) array data
                                Severity: Minor
                                Found in zul/src/main/java/org/zkoss/zul/GroupsModelArray.java - About 3 hrs to fix

                                  Treechildren has 26 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  public class Treechildren extends XulElement {
                                      private static final String VISIBLE_ITEM = "org.zkoss.zul.Treechildren.visibleItem";
                                  
                                      private int _visibleItemCount;
                                  
                                  
                                  Severity: Minor
                                  Found in zul/src/main/java/org/zkoss/zul/Treechildren.java - About 3 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if (m._isValid == null) {
                                                var flags = getParsingFlags(m),
                                                    parsedParts = some.call(flags.parsedDateParts, function (i) {
                                                        return i != null;
                                                    }),
                                    Severity: Critical
                                    Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 3 hrs to fix

                                      Function ajaxFetch has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          self.ajaxFetch = function (input, init) {
                                              return new Promise(function (resolve, reject) {
                                                  var request
                                                  if (Request.prototype.isPrototypeOf(input) && !init) {
                                                      request = input
                                      Severity: Major
                                      Found in zk/src/main/resources/web/js/zk/ext/fetch.js - About 3 hrs to fix

                                        Function create has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function create(parent: zk.Widget | undefined, wi: WidgetInfo, ignoreDom?: boolean): zk.Widget {
                                            let nm;
                                            var wgt: zk.Widget, stub: boolean,
                                                type = wi[0],
                                                uuid = wi[1],
                                        Severity: Major
                                        Found in zk/src/main/resources/web/js/zk/mount.ts - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language