Showing 4,841 of 7,782 total issues

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 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 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 _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

                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 _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 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 create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          create(context) {
                              const sourceCode = context.getSourceCode();
                              function checkAccessModifier(node: ClassMember): void {
                                  // Knowing that `node.accessibility` is not enough; must check with
                                  // `isValidAccessModifier`.
                      Severity: Minor
                      Found in eslint-plugin-zk/src/rules/noAccessModifier.ts - About 1 hr to fix

                        Method expendValue has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private String expendValue(Map labels, String value) {
                                if (labels != null && value != null) {
                                    int offset = 0;
                                    while (offset < value.length()) {
                                        int start = value.indexOf("${", offset);

                          Method getLastModified has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public long getLastModified(K src) {
                                  if (src instanceof URL) {
                                      URLConnection conn = null;
                                      try {
                                          URL url = (URL) src;
                          Severity: Minor
                          Found in zcommon/src/main/java/org/zkoss/util/resource/AbstractLoader.java - About 1 hr to fix

                            Method toReadable has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static final String toReadable(long val, String skips) {
                                    if (skips == null) skips = SKIPS;
                            
                                    final int mod = 36 - skips.length();
                            
                            
                            Severity: Minor
                            Found in zcommon/src/main/java/org/zkoss/util/Checksums.java - About 1 hr to fix

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

                                  private void init(String name, byte[] data) throws IOException {
                                      if (data == null)
                                          throw new IllegalArgumentException("null data");
                                      _name = name;
                                      _data = data;
                              Severity: Minor
                              Found in zcommon/src/main/java/org/zkoss/image/AImage.java - About 1 hr to fix

                                Method toString has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public String toString(){
                                        StringBuffer sb = new StringBuffer();
                                        switch(type){
                                        case TYPE_VALUE:
                                            sb.append("VALUE(").append(value).append(')');
                                Severity: Minor
                                Found in zcommon/src/main/java/org/zkoss/json/parser/Yytoken.java - About 1 hr to fix

                                  Method matched has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private static boolean matched(Class[] types, Object[] args, boolean loosely) {
                                          if (types.length == args.length) {
                                              final Object[] argcvt = loosely ? new Object[args.length]: args;
                                              boolean cvted = false;
                                              for (int k = args.length;;) {
                                  Severity: Minor
                                  Found in zcommon/src/main/java/org/zkoss/lang/Classes.java - About 1 hr to fix

                                    Method toAttributeName has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static final String toAttributeName(String methodName) {
                                            int len = methodName.length();
                                            if (len < 2)
                                                return null;
                                    
                                    
                                    Severity: Minor
                                    Found in zcommon/src/main/java/org/zkoss/lang/Classes.java - About 1 hr to fix

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

                                          @SuppressWarnings({ "rawtypes", "unchecked" })
                                          private Optional compare(boolean isMax) {
                                              Comparable result = null;
                                      
                                              if (iterator.hasNext()) {
                                      Severity: Minor
                                      Found in zel/src/main/java/org/zkoss/zel/impl/stream/Stream.java - About 1 hr to fix

                                        Method getOutputStream has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                @Override
                                                public ServletOutputStream getOutputStream() throws IOException {
                                                    if (writer != null) {
                                                        throw new IllegalStateException(
                                                                "getWriter() has already been called on this response.");
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language