Showing 7,775 of 7,775 total issues

Method insertBefore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public boolean insertBefore(Component newChild, Component refChild) {
        if (newChild instanceof Rows) {
            if (super.insertBefore(newChild, refChild)) {
                _rows = (Rows) newChild;
                return true;
Severity: Minor
Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

    Method insertBefore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public boolean insertBefore(Component newChild, Component refChild) {
            if (newChild instanceof Caption) {
                refChild = getFirstChild();
                //always makes caption as the first child
                if (super.insertBefore(newChild, refChild)) {
    Severity: Minor
    Found in zul/src/main/java/org/zkoss/zul/Panel.java - About 1 hr to fix

      Method addToolbar has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public boolean addToolbar(String name, Toolbar toolbar) {
              Component refChild = null;
              if ("tbar".equals(name)) {
                  if (_tbar != null)
                      throw new UiException("Only one top toolbar child is allowed: " + this);
      Severity: Minor
      Found in zul/src/main/java/org/zkoss/zul/Panel.java - About 1 hr to fix

        Method ungroup has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void ungroup(boolean ascending) {
                final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
                if (cmpr != null) {
        
                    final Listbox listbox = getListbox();
        Severity: Minor
        Found in zul/src/main/java/org/zkoss/zul/Listheader.java - About 1 hr to fix

          Method service has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
                  final String cmd = request.getCommand();
                  if (cmd.equals(Events.ON_OPEN)) {
                      OpenEvent evt = OpenEvent.getOpenEvent(request);
                      _open = evt.isOpen();
          Severity: Minor
          Found in zul/src/main/java/org/zkoss/zul/Group.java - About 1 hr to fix

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

                public void setValue(Comparable<?> series, Comparable<?> category, Number value) {
                    List<Comparable<?>> key = new ArrayList<Comparable<?>>(2);
                    key.add(series);
                    key.add(category);
            
            
            Severity: Minor
            Found in zul/src/main/java/org/zkoss/zul/SimpleCategoryModel.java - About 1 hr to fix

              Method insertBefore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public boolean insertBefore(Component child, Component refChild) {
                      boolean sel = !getChildren().stream().filter(Component::isVisible).findAny().isPresent(), desel = false;
                      final Tab newtab = (Tab) child;
                      if (!sel && newtab.isSelected()) {
                          if (newtab.getTabbox() != null) // B65-ZK-1597
              Severity: Minor
              Found in zul/src/main/java/org/zkoss/zul/Tabs.java - About 1 hr to fix

                Method setThreadLocals has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    @SuppressWarnings("unchecked")
                    private void setThreadLocals() {
                        if (_threadLocals != null) {
                            try {
                                Class cls = Classes

                  Function ZTAG has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          'ZTAG': function (selector) {
                              var tag = selector.substring(1);
                              return function (elem, context, xml, wgt) {
                                  wgt = wgt || zk.Widget.$(elem, {exact: true});
                  
                  
                  Severity: Minor
                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                    Function timer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    d3.timer = function(callback, delay, then) {
                      var found = false,
                          t0,
                          t1 = d3_timer_queue;
                    
                    
                    Severity: Minor
                    Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                      Function d3_svg_line has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function d3_svg_line(projection) {
                        var x = d3_svg_lineX,
                            y = d3_svg_lineY,
                            interpolate = "linear",
                            interpolator = d3_svg_lineInterpolators[interpolate],
                      Severity: Minor
                      Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                        Function d3_svg_lineMonotoneTangents has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function d3_svg_lineMonotoneTangents(points) {
                          var tangents = [],
                              d,
                              a,
                              b,
                        Severity: Minor
                        Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                          Function d3_layout_forceAccumulate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function d3_layout_forceAccumulate(quad, alpha, charges) {
                            var cx = 0,
                                cy = 0;
                            quad.charge = 0;
                            if (!quad.leaf) {
                          Severity: Minor
                          Found in zktest/src/main/webapp/js/d3.layout.js - About 1 hr to fix

                            Function attr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                attr: function( elem, name, value ) {
                                    var ret, hooks,
                                        nType = elem.nodeType;
                            
                                    // Don't get/set attributes on text, comment and attribute nodes
                            Severity: Minor
                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                              Function _draw has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      _draw(opts: EffectMaskOptions, $anchor: zk.JQZK): void {
                                          var maskId = opts.id || 'z_applymask',
                                              progbox = jq(maskId, zk)[0];
                              
                                          if (progbox) return;
                              Severity: Minor
                              Found in zk/src/main/resources/web/js/zk/effect.ts - About 1 hr to fix

                                Function undoVParent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    undoVParent(): this {
                                        if (this.hasVParent()) {
                                            var el = this.jq[0],
                                                p = el['z_vp'] as undefined | string,
                                                agt = el['z_vpagt'] as string,
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/dom.ts - About 1 hr to fix

                                  Function _mousewheelX has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _mousewheelX(evt: zk.Event, delta: number, deltaX: number, deltaY: number): void {
                                          if (deltaX) {
                                              evt.stop();
                                              var opts = this.opts,
                                                  steps = opts.startStep,
                                  Severity: Minor
                                  Found in zul/src/main/resources/web/js/zul/WScroll.ts - About 1 hr to fix

                                    Function slideOut has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            slideOut(wgt: zk.Widget, opts?: zk.SlideOptions): this {
                                                if (_checkAnimated(this, wgt, opts, 'slideOut'))
                                                    return this;
                                    
                                                var anchor = opts ? opts.anchor || 't' : 't',
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/anima.ts - About 1 hr to fix

                                      Function _mousewheelY has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _mousewheelY(evt: zk.Event, delta: number, deltaX: number, deltaY: number): void {
                                              if (deltaY) {
                                                  evt.stop();
                                                  var opts = this.opts,
                                                      steps = opts.startStep,
                                      Severity: Minor
                                      Found in zul/src/main/resources/web/js/zul/WScroll.ts - About 1 hr to fix

                                        Function _eval has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function _eval(wgt: zk.Widget, s: string | null, args: unknown): string | null {
                                            if (s)
                                                for (var j = 0, k: number, l: number, t: string, last = s.length - 1, s2: string | undefined; ;) {
                                                    k = s.indexOf('#{', j);
                                                    if (k < 0) {
                                        Severity: Minor
                                        Found in zk/src/main/resources/web/js/zk/zuml/Parser.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language