Showing 4,841 of 7,782 total issues

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

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

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

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

                                      private static void checkCompDenpendency(XMLResource xr, Map<String, XMLResource> rcmap, String elName) {
                                          if (xr.depends.size() > 0) {
                                              return;
                                          }
                                  
                                  
                                  Severity: Minor
                                  Found in zcommon/src/main/java/org/zkoss/util/resource/ClassLocator.java - About 1 hr to fix

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

                                        @SuppressWarnings("unchecked")
                                        public static final Object toContents(Object obj) {
                                            if (obj instanceof Collection) {
                                                Collection c = (Collection)obj;
                                                boolean cvted = false;
                                    Severity: Minor
                                    Found in zcommon/src/main/java/org/zkoss/idom/util/IDOMs.java - About 1 hr to fix

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

                                          public static boolean isIdentifier(String key) {
                                      
                                              if (SKIP_IDENTIFIER_CHECK) {
                                                  return true;
                                              }
                                      Severity: Minor
                                      Found in zel/src/main/java/org/zkoss/zel/impl/util/Validation.java - About 1 hr to fix

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

                                            private Object removeRichlet0(String name) {
                                                if (name == null) {
                                                    throw new IllegalArgumentException("Name is required");
                                                }
                                                Object o;
                                        Severity: Minor
                                        Found in zk/src/main/java/org/zkoss/zk/ui/util/Configuration.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language