Showing 4,841 of 7,782 total issues

Function handleStrictParse$1 has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function handleStrictParse$1(weekdayName, format, strict) {
        var i,
            ii,
            mom,
            llc = weekdayName.toLocaleLowerCase();
Severity: Major
Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 2 hrs to fix

    Function Body has 68 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function Body() {
            this.bodyUsed = false
    
    
            this._initBody = function (body) {
    Severity: Major
    Found in zk/src/main/resources/web/js/zk/ext/fetch.js - About 2 hrs to fix

      File AbstractListModel.java has 279 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

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

        File Encodes.java has 279 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /* Encodes.java
        
            Purpose:
        
            Description:
        Severity: Minor
        Found in zweb/src/main/java/org/zkoss/web/servlet/http/Encodes.java - About 2 hrs to fix

          Method compare has 67 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static final int compare(final Object obj0, final Object obj1)
                      throws ELException {
                  if (obj0 == obj1 || equals(obj0, obj1)) {
                      return 0;
                  }
          Severity: Major
          Found in zel/src/main/java/org/zkoss/zel/impl/lang/ELSupport.java - About 2 hrs to fix

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

                protected void init() {
            
                    setState(SubState.PSDOCLS_PRE_PARAM, new StateCtx<SubState, Token.Type, Token>() {
            
                        protected void onLeave(Token input, Token.Type inputClass, SubState dest) {
            Severity: Major
            Found in zk/src/main/java/org/zkoss/zk/ui/select/impl/InSeqMachine.java - About 2 hrs to fix

              Method redraw has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public void redraw(final Writer out) throws IOException {
                      final int order = ComponentRedraws.beforeRedraw(false);
                      final boolean aupg = isAsyncUpdate();
                      final String extra;
                      try {
              Severity: Major
              Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 2 hrs to fix

                Method getShadowVariable0 has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected Object getShadowVariable0(Component baseChild, String name, boolean recurse) {
                        try {
                            _variableSeeking = true;
                            Object val = getAttribute(name);
                            if (val != null || hasAttribute(name))
                Severity: Major
                Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 2 hrs to fix

                  Function arc has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  d3.svg.arc = function() {
                    var innerRadius = d3_svg_arcInnerRadius,
                        outerRadius = d3_svg_arcOuterRadius,
                        startAngle = d3_svg_arcStartAngle,
                        endAngle = d3_svg_arcEndAngle;
                  Severity: Major
                  Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                    Function d3_transition has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function d3_transition(groups, id, time) {
                      d3_arraySubclass(groups, d3_transitionPrototype);
                    
                      var tweens = {},
                          event = d3.dispatch("start", "end"),
                    Severity: Major
                    Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

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

                      function tree$mold$(out) {
                          var uuid = this.uuid,
                              innerWidth = zUtl.encodeXML(this.getInnerWidth()),
                              width = innerWidth === '100%' ? ' width="100%"' : '',
                              wdStyle = innerWidth !== '100%' ? 'width:' + innerWidth : '',
                      Severity: Major
                      Found in zul/src/main/resources/web/js/zul/sel/mold/tree.js - About 2 hrs to fix

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

                            create(context) {
                                const sourceCode = context.getSourceCode();
                                function checkJavaStyleSetter(node: TSESTree.MethodDefinition | TSESTree.TSAbstractMethodDefinition) {
                                    const { key, value: functionExpression } = node;
                                    if (node.static || key.type !== AST_NODE_TYPES.Identifier) {
                        Severity: Major
                        Found in eslint-plugin-zk/src/rules/javaStyleSetterSignature.ts - About 2 hrs to fix

                          Img has 24 methods (exceeds 20 allowed). Consider refactoring.
                          Open

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

                            ELSupport has 24 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            public class ELSupport {
                                //20120418, henrichen: moved from org.zkoss.zel.impl.parser.AstValue (ZK-1062)
                                private static final boolean IS_SECURITY_ENABLED =
                                    (System.getSecurityManager() != null);
                                
                            Severity: Minor
                            Found in zel/src/main/java/org/zkoss/zel/impl/lang/ELSupport.java - About 2 hrs to fix

                              ScopeParamVM has 24 methods (exceeds 20 allowed). Consider refactoring.
                              Open

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

                                ForEachVM has 24 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                public class ForEachVM {
                                    private int begin = 1;
                                    private int end = 9;
                                    private int step = 2;
                                    private String var = "each";
                                Severity: Minor
                                Found in zktest/src/main/java/org/zkoss/zktest/zats/zuti/vm/ForEachVM.java - About 2 hrs to fix

                                  JSCumulativeContentRenderer has 24 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  public class JSCumulativeContentRenderer implements ContentRenderer {
                                  
                                      private Map<String, List<Object>> _stack = new LinkedHashMap<String, List<Object>>();
                                  
                                      private List<Object> fetch(String name) {
                                  Severity: Minor
                                  Found in zk/src/main/java/org/zkoss/zk/ui/sys/JSCumulativeContentRenderer.java - About 2 hrs to fix

                                    EventProcessingThreadImpl has 24 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    public class EventProcessingThreadImpl extends Thread implements EventProcessingThread {
                                        private static final Logger log = LoggerFactory.getLogger(EventProcessingThreadImpl.class);
                                    
                                        /** The processor. */
                                        private EventProcessor _proc;
                                    Severity: Minor
                                    Found in zk/src/main/java/org/zkoss/zk/ui/impl/EventProcessingThreadImpl.java - About 2 hrs to fix

                                      BinderCtrl has 24 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      public interface BinderCtrl {
                                          /**
                                           * Default queue name of a binder to share the bean notification and global commands
                                           */
                                          public static final String DEFAULT_QUEUE_NAME = "$ZKBIND_DEFQUE$"; //the associated event queue name
                                      Severity: Minor
                                      Found in zkbind/src/main/java/org/zkoss/bind/sys/BinderCtrl.java - About 2 hrs to fix

                                        Messagebox has 24 methods (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        public class Messagebox {
                                            private static final Logger log = LoggerFactory.getLogger(Messagebox.class);
                                            private static String _templ = "~./zul/html/messagebox.zul";
                                        
                                            /** A symbol consisting of a question mark in a circle.
                                        Severity: Minor
                                        Found in zul/src/main/java/org/zkoss/zul/Messagebox.java - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language