Showing 7,775 of 7,775 total issues

Method addTemplateTracking has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected void addTemplateTracking(Component templateComp, final Component eachComp, final Object data,
            final int index, final int size) {
        final Binder binder = BinderUtil.getBinder(eachComp, true);
        if (binder == null)
            return; //no binder
Severity: Minor
Found in zkbind/src/main/java/org/zkoss/bind/impl/AbstractRenderer.java - About 1 hr to fix

    Method coerceToUi has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @SuppressWarnings("unchecked")
        public Object coerceToUi(Object val, Component comp, BindContext ctx) {
            Tabbox tbx = (Tabbox) comp;
            final ListModel<?> model = tbx.getModel();
            //ZK-762 selection of ListModelList is not correct if binding to selectedItem

      Method mergeExceptionInfo has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static RuntimeException mergeExceptionInfo(Exception ex, Object loc) {
              Location location = null;
              boolean showColumn = true;
              if (loc instanceof Component) {
                  location = toComponentLocation((Component) loc);
      Severity: Minor
      Found in zkbind/src/main/java/org/zkoss/bind/impl/MiscUtil.java - About 1 hr to fix

        Method clone has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            @SuppressWarnings("unchecked")
            public Object clone() {
                int cntSel = _selItems.size();
        
                final Tree clone = (Tree) super.clone();
        Severity: Minor
        Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

          Method removePartial has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private boolean removePartial(Collection<?> c, boolean exclude) {
                  boolean removed = false;
                  int index = 0;
                  int begin = -1;
                  // B60-ZK-1126.zul
          Severity: Minor
          Found in zul/src/main/java/org/zkoss/zul/ListModelList.java - About 1 hr to fix

            Method service has 30 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);
                        setVisible(evt.isOpen());
            Severity: Minor
            Found in zul/src/main/java/org/zkoss/zul/Window.java - About 1 hr to fix

              Method afterCompose has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public void afterCompose() {
                      _afterComposed = true;
                      fixModeOnly();
                      if (_instantMode) {
                          final Execution exec = getExecution();
              Severity: Minor
              Found in zul/src/main/java/org/zkoss/zul/Include.java - About 1 hr to fix

                Method isSelectAll has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public boolean isSelectAll() {
                            Selectable smodel = (Selectable) model;
                            boolean isGroupSelectable = model.isGroupSelectable();
                            for (int i = 0, j = model.getGroupCount(); i < j; i++) {
                                if (isGroupSelectable) {
                Severity: Minor
                Found in zul/src/main/java/org/zkoss/zul/AbstractGroupsModel.java - About 1 hr to fix

                  Method renderProperties has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
                          super.renderProperties(renderer);
                  
                          final String cnt = getContent();
                          //allow deriving to override getContent()
                  Severity: Minor
                  Found in zul/src/main/java/org/zkoss/zul/Script.java - About 1 hr to fix

                    Method parseCSS has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static int[] parseCSS(String code, int[] arr) {
                            if (code == null)
                                return arr;
                            if (arr == null)
                                arr = new int[4];
                    Severity: Minor
                    Found in zweb/src/main/java/org/zkoss/web/fn/Colors.java - About 1 hr to fix

                      Method render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              public void render(Page page, Writer out) throws IOException {
                                  out.write(HtmlPageRenders.outLangStyleSheets(_exec, null, null));
                                  out.write(HtmlPageRenders.outLangJavaScripts(_exec, null, null));
                      
                                  if (_pageDOM) {
                      Severity: Minor
                      Found in zkplus/src/main/java/org/zkoss/zkplus/embed/Renders.java - About 1 hr to fix

                        Function _bc_do_add has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _bc_do_add: function(a, b, c) {
                                var d, e, g, f, h, k, l;
                                d = libbcmath.MAX(a.n_scale, b.n_scale);
                                e = libbcmath.MAX(a.n_len, b.n_len) + 1;
                                c = libbcmath.bc_new_num(e,
                        Severity: Minor
                        Found in zktest/src/main/webapp/test2/js/zk-3913-PDF417lib.js - About 1 hr to fix

                          Function d3_scale_quantile has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function d3_scale_quantile(domain, range) {
                            var thresholds;
                          
                            function rescale() {
                              var k = 0,
                          Severity: Minor
                          Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                            Function set has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    set: function( elem, value, extra ) {
                                        var matches,
                                            styles = getStyles( elem ),
                            
                                            // Only read styles.position if the test has a chance to fail
                            Severity: Minor
                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                              Function speed has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              jQuery.speed = function( speed, easing, fn ) {
                                  var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                                      complete: fn || !fn && easing ||
                                          isFunction( speed ) && speed,
                                      duration: speed,
                              Severity: Minor
                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                Function removeClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    removeClass: function( value ) {
                                        var classes, elem, cur, curValue, clazz, j, finalValue,
                                            i = 0;
                                
                                        if ( isFunction( value ) ) {
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                  function comboitem$mold$(out) {
                                      out.push('<li', this.domAttrs_({text: true}), '>');
                                  
                                      const iconHTML = this.domIcon_(), imgHTML = this.domImage_();
                                      if (imgHTML) {
                                  Severity: Minor
                                  Found in zul/src/main/resources/web/js/zul/inp/mold/comboitem.js - About 1 hr to fix

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

                                    function menubar$mold$(out) {
                                        let w;
                                        const uuid = this.uuid;
                                        if ('vertical' === this.getOrient()) {
                                            out.push('<div', this.domAttrs_(), ' role="menubar" aria-orientation="vertical"><ul id="', uuid, '-cave" role="none">');
                                    Severity: Minor
                                    Found in zul/src/main/resources/web/js/zul/menu/mold/menubar.js - About 1 hr to fix

                                      Function afterLoad has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export function afterLoad(a: string | CallableFunction, b?: CallableFunction, front?: boolean): boolean | void {
                                          if (typeof a == 'string') {
                                              if (!b) return true;
                                      
                                              for (var pkgs = a.split(','), j = pkgs.length; j--;) {
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/pkg.ts - About 1 hr to fix

                                        Function CallExpression has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                    CallExpression(node) {
                                                        const { callee } = node;
                                                        if (callee.type !== AST_NODE_TYPES.MemberExpression ||
                                                            callee.property.type !== AST_NODE_TYPES.Identifier
                                                        ) {
                                        Severity: Minor
                                        Found in eslint-plugin-zk/src/rules/preferNativeInstanceof.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language