Showing 4,841 of 7,782 total issues

Method ListData has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  final public void ListData() throws ParseException {
                            /*@bgen(jjtree) ListData */
  AstListData jjtn000 = new AstListData(JJTLISTDATA);
  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 Assignment has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      final public void Assignment() throws ParseException {
        if (jj_2_2(4)) {
          LambdaExpression();
        } else {
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    Severity: Major
    Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 2 hrs to fix

      Method beforeHostChildRemoved has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void beforeHostChildRemoved(Component child, int indexOfChild) {
              if (log.isDebugEnabled()) {
                  log.debug("beforeHostChildRemoved {}, in this shadow {}", child,
                          ShadowElementsCtrl.getCurrentInfo());
              }
      Severity: Major
      Found in zk/src/main/java/org/zkoss/zk/ui/HtmlShadowElement.java - About 2 hrs to fix

        Method createComponents has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public Component[] createComponents(Execution exec, PageDefinition pagedef, Page page, Component parent,
                    Component insertBefore, VariableResolver resolver, Map<?, ?> arg) {
                if (pagedef == null)
                    throw new IllegalArgumentException("pagedef");
        
        
        Severity: Major
        Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 2 hrs to fix

          Method read has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              /*package*/ static void read(NameSpace ns, ObjectInputStream s) throws IOException {
                  for (;;) {
                      try {
                          final String nm = (String) s.readObject();
                          if (nm == null)
          Severity: Major
          Found in zk/src/main/java/org/zkoss/zk/scripting/bsh/BSHInterpreter.java - About 2 hrs to fix

            Method load has 59 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public void load(BindContext ctx) {
                    final Binder binder = getBinder();
                    final BindEvaluatorX eval = binder.getEvaluatorX();
                    final Component comp = getComponent();
                    final BindingExecutionInfoCollector collector = ((BinderCtrl) getBinder()).getBindingExecutionInfoCollector();
            Severity: Major
            Found in zkbind/src/main/java/org/zkoss/bind/impl/LoadFormBindingImpl.java - About 2 hrs to fix

              File Slider.java has 265 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

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

                Method grad has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private static String grad(String dir, Browser template, String[] colors) {
                        if ("|ver|hor|diag-|diag+|rad|".indexOf("|" + dir + "|") == -1)
                            throw new IllegalArgumentException("Type must be ver, hor, diag-, diag+, or rad.");
                        if (colors.length < 2)
                            throw new IllegalArgumentException("Please specify more than two colors.");
                Severity: Major
                Found in zweb/src/main/java/org/zkoss/web/fn/ThemeFns.java - About 2 hrs to fix

                  Function d3_scale_ordinal has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function d3_scale_ordinal(domain, ranger) {
                    var index,
                        range,
                        rangeBand;
                  
                  
                  Severity: Major
                  Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                    Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function ajaxConvert( s, response, jqXHR, isSuccess ) {
                        var conv2, current, conv, tmp, prev,
                            converters = {},
                    
                            // Work with a copy of dataTypes in case we need to modify it for conversion
                    Severity: Major
                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

                      File RepeatableInputStream.java has 264 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

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

                        Video has 22 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        public class Video extends AbstractTag {
                            public Video() {
                                super("video");
                            }
                        
                        
                        Severity: Minor
                        Found in zhtml/src/main/java/org/zkoss/zhtml/Video.java - About 2 hrs to fix

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

                          public class Button extends AbstractTag {
                              public Button() {
                                  super("button");
                              }
                              /**
                          Severity: Minor
                          Found in zhtml/src/main/java/org/zkoss/zhtml/Button.java - About 2 hrs to fix

                            Primitives has 22 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            public class Primitives {
                            
                                /**
                                 * Convert Boolean object to primitive  boolean.
                                 */
                            Severity: Minor
                            Found in zcommon/src/main/java/org/zkoss/lang/Primitives.java - About 2 hrs to fix

                              SimpleNode has 22 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              public abstract class SimpleNode extends ELSupport implements Node {
                                  protected Node parent;
                              
                                  protected Node[] children;
                              
                              Severity: Minor
                              Found in zel/src/main/java/org/zkoss/zel/impl/parser/SimpleNode.java - About 2 hrs to fix

                                EvaluationContext has 22 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                public final class EvaluationContext extends ELContext {
                                
                                    private final ELContext elContext;
                                
                                    private final FunctionMapper fnMapper;
                                Severity: Minor
                                Found in zel/src/main/java/org/zkoss/zel/impl/lang/EvaluationContext.java - About 2 hrs to fix

                                  B00878WrongValueException2 has 22 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  public class B00878WrongValueException2 {
                                      
                                      String bandboxVal;
                                      String comboboxVal;
                                      Date dateboxVal;

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if (x instanceof Page) {
                                                final Page page = (Page) x;
                                                return (!_ignoreZScript && page.getZScriptVariable(fdname) != null)
                                                        || page.hasAttributeOrFellow(fdname, true)
                                                        || (!_ignoreXel && page.getXelVariable(null, null, fdname, true) != null);
                                    Severity: Critical
                                    Found in zk/src/main/java/org/zkoss/zk/ui/util/ConventionWire.java - About 2 hrs to fix

                                      Group has 22 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      public class Group extends Row {
                                          private boolean _open = true;
                                          private transient List<Row> _items;
                                      
                                          static {
                                      Severity: Minor
                                      Found in zul/src/main/java/org/zkoss/zul/Group.java - About 2 hrs to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if (tolerant) {
                                                    return o2x1 <= o1x2 && o2x2 >= o1x1 && o2y1 <= o1y2 && o2y2 >= o1y1
                                                        && o1x2 - o2x1 > tolerant && o2x2 - o1x1 > tolerant
                                                        && o1y2 - o2y1 > tolerant && o2y2 - o1y1 > tolerant;
                                                } else
                                        Severity: Critical
                                        Found in zk/src/main/resources/web/js/zk/dom.ts - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language