Showing 4,841 of 7,782 total issues

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

    public void setPaginal(Paginal pgi) {
        if (!Objects.equals(pgi, _pgi)) {
            final Paginal old = _pgi;
            _pgi = pgi; //assign before detach paging, since removeChild assumes it

Severity: Minor
Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

    Method renderProperties has 28 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);
    
            if (!"normal".equals(_border))
                render(renderer, "border", _border);
    Severity: Minor
    Found in zul/src/main/java/org/zkoss/zul/LayoutRegion.java - About 1 hr to fix

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

          @SuppressWarnings("unchecked")
          protected void organizeGroup(Comparator<D> cmpr, int col) {
              List<List<D>> group = new LinkedList<List<D>>();
              List<D> gdata = null;
              D last = null;
      Severity: Minor
      Found in zul/src/main/java/org/zkoss/zul/GroupsModelArray.java - About 1 hr to fix

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

            public void setPaginal(Paginal pgi) {
                if (!Objects.equals(pgi, _pgi)) {
                    final Paginal old = _pgi;
                    _pgi = pgi; // assign before detach paging, since removeChild
                    // assumes it
        Severity: Minor
        Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 1 hr to fix

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

              public static final void render(ServletContext ctx, HttpServletRequest request, HttpServletResponse response,
                      Richlet richlet, String path, boolean pageDOM, Writer out) throws ServletException, IOException {
                  if (path == null)
                      path = Https.getThisServletPath(request);
          
          
          Severity: Minor
          Found in zkplus/src/main/java/org/zkoss/zkplus/embed/Renders.java - About 1 hr to fix

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

                public void putAll(Map<? extends K, ? extends V> c) {
                    if (c == _map) //special case
                        return;
            
                    if (_map instanceof LinkedHashMap) {
            Severity: Minor
            Found in zul/src/main/java/org/zkoss/zul/ListModelMap.java - About 1 hr to fix

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

                  public void cleanup(Execution exec, Execution parent, List errs) throws Exception {
                      if (parent == null) {
                          try {
                              if (errs == null || errs.isEmpty()) {
                                  if (log.isDebugEnabled()) {

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

                    public Enumeration getAttributeNames() {
                        final Enumeration _e = _req.getAttributeNames();
                        final Iterator _it = _attrs.keySet().iterator();
                        return new Enumeration() {
                            Object _next;

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

                      public V load(String src) throws Exception {
                          if (log.isDebugEnabled())
                              log.debug("Parse {}", src);
                          final String path = getRealPath(src);
                          InputStream is = null;
                  Severity: Minor
                  Found in zweb/src/main/java/org/zkoss/web/util/resource/ExtendletLoader.java - About 1 hr to fix

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

                        public Collection<Treeitem> getItems() {
                            return new AbstractCollection<Treeitem>() {
                                public int size() {
                                    return getItemCount();
                                }
                    Severity: Minor
                    Found in zul/src/main/java/org/zkoss/zul/Treechildren.java - About 1 hr to fix

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

                          public Enumeration getAttributeNames() {
                              final Enumeration _e = _req.getAttributeNames();
                              final Iterator _it = _attrs.keySet().iterator();
                              return new Enumeration() {
                                  Object _next;

                        Function d3_dispatch has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function d3_dispatch(type) {
                          var dispatch = {},
                              listeners = [];
                        
                          dispatch.add = function(listener) {
                        Severity: Minor
                        Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                          Function drag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          d3.behavior.drag = function() {
                            var event = d3.dispatch("drag", "dragstart", "dragend");
                          
                            function drag() {
                              this
                          Severity: Minor
                          Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                            Function wiggle has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              "wiggle": function(data) {
                                var n = data.length,
                                    x = data[0],
                                    m = x.length,
                                    max = 0,
                            Severity: Minor
                            Found in zktest/src/main/webapp/js/d3.layout.js - About 1 hr to fix

                              Function firstWalk has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function firstWalk(node, previousSibling) {
                                    var children = node.children,
                                        layout = node._tree;
                                    if (children && (n = children.length)) {
                                      var n,
                              Severity: Minor
                              Found in zktest/src/main/webapp/js/d3.layout.js - About 1 hr to fix

                                Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    finish: function( type ) {
                                        if ( type !== false ) {
                                            type = type || "fx";
                                        }
                                        return this.each( function() {
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                  Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      off: function( types, selector, fn ) {
                                          var handleObj, type;
                                          if ( types && types.preventDefault && types.handleObj ) {
                                  
                                              // ( event )  dispatched jQuery.Event
                                  Severity: Minor
                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                    Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    jQuery.parseHTML = function( data, context, keepScripts ) {
                                        if ( typeof data !== "string" ) {
                                            return [];
                                        }
                                        if ( typeof context === "boolean" ) {
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                      Function addChd has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                  export function addChd(wgt: zk.Widget, ...rargs: string[]): void {
                                                      if (wgt) {
                                                          const onSizeChildren: zk.Widget[] = [],
                                                              fn = function (child: zk.Widget): void {
                                                                  const act = _beforeAction(child, 'show') as never,
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/au.ts - About 1 hr to fix

                                        Function setLoaded has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export function setLoaded(pkg: string, wait?: boolean): void { //internal
                                            _xloadings.$remove(pkg);
                                            _loading[pkg] = true;
                                        
                                            if (wait) {
                                        Severity: Minor
                                        Found in zk/src/main/resources/web/js/zk/pkg.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language