Showing 4,841 of 7,782 total issues

Function interpolateString has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

d3.interpolateString = function(a, b) {
  var m, // current match
      i, // current index
      j, // current index (for coallescing)
      s0 = 0, // start index of current string prefix
Severity: Major
Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

    Function start has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      force.start = function() {
        var i,
            j,
            n = nodes.length,
            m = links.length,
    Severity: Major
    Found in zktest/src/main/webapp/js/d3.layout.js - About 2 hrs to fix

      Function endOf has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function endOf(units) {
              var time, startOfDate;
              units = normalizeUnits(units);
              if (units === undefined || units === 'millisecond' || !this.isValid()) {
                  return this;
      Severity: Major
      Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 2 hrs to fix

        Function _finishDrag has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _finishDrag(evt: zk.Event, success: boolean): void {
                this.dragging = false;
                if (this.stackup) {
                    jq(this.stackup).remove();
                    delete this.stackup;
        Severity: Major
        Found in zk/src/main/resources/web/js/zk/drag.ts - About 2 hrs to fix

          Text has 23 methods (exceeds 20 allowed). Consider refactoring.
          Open

          public class Text extends AbstractComponent implements RawId {
              private String _value = "";
              private boolean _encode = true;
              private Integer _tabindex;
          
          
          Severity: Minor
          Found in zhtml/src/main/java/org/zkoss/zhtml/Text.java - About 2 hrs to fix

            MainLayout has 23 methods (exceeds 20 allowed). Consider refactoring.
            Open

            public class MainLayout extends Borderlayout {
                private static final Logger log = LoggerFactory.getLogger(MainLayout.class);
            
                ListModelList fileModel = new ListModelList();
                Map relatedFileModel = new LinkedHashMap();
            Severity: Minor
            Found in zktest/src/main/java/org/zkoss/zktest/test2/MainLayout.java - About 2 hrs to fix

              B00757OnChange has 23 methods (exceeds 20 allowed). Consider refactoring.
              Open

              public class B00757OnChange {
                  String value11;
                  String value12;
                  String value21;
                  String value22;
              Severity: Minor
              Found in zktest/src/main/java/org/zkoss/zktest/bind/issue/B00757OnChange.java - About 2 hrs to fix

                HtmlMacroComponent has 23 methods (exceeds 20 allowed). Consider refactoring.
                Open

                public class HtmlMacroComponent extends HtmlBasedComponent implements Macro {
                    private transient Map<String, Object> _props;
                    private String _uri;
                    /** An array of components created by this inline macro.
                     * It is used only if {@link #isInline}
                Severity: Minor
                Found in zk/src/main/java/org/zkoss/zk/ui/HtmlMacroComponent.java - About 2 hrs to fix

                  ExecutionCtrl has 23 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  public interface ExecutionCtrl {
                      /** Returns the current page.
                       * Though an execution might process many pages, it processes update
                       * requests one-by-one and each update request is associated
                       * with a page.
                  Severity: Minor
                  Found in zk/src/main/java/org/zkoss/zk/ui/sys/ExecutionCtrl.java - About 2 hrs to fix

                    ParamCall has 23 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    public class ParamCall {
                    
                        private static final Logger _log = LoggerFactory.getLogger(ParamCall.class);
                        private static final Paranamer _PARANAMER = new CachingParanamer(new AdaptiveParanamer());
                    
                    
                    Severity: Minor
                    Found in zkbind/src/main/java/org/zkoss/bind/impl/ParamCall.java - About 2 hrs to fix

                      Rating has 23 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      public class Rating extends HtmlBasedComponent implements Disable, Readonly {
                      
                          static {
                              addClientEvent(Rating.class, Events.ON_CHANGE, CE_IMPORTANT | CE_REPEAT_IGNORE);
                          }
                      Severity: Minor
                      Found in zul/src/main/java/org/zkoss/zul/Rating.java - About 2 hrs to fix

                        MeshElement has 23 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        public abstract class MeshElement extends XulElement implements Paginated {
                            private String _span;
                            private boolean _sizedByContent;
                            private boolean _autopaging;
                            private String _pagingPosition = "bottom";
                        Severity: Minor
                        Found in zul/src/main/java/org/zkoss/zul/impl/MeshElement.java - About 2 hrs to fix

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

                              /*package*/ void service(Event event, Scope scope, final List<EventListenerInfo> listeners,
                                      final EventHandler evthd, final Method mtd, boolean skipPageListener) throws Exception {
                                  final Execution exec = Executions.getCurrent();
                                  final Desktop desktop = exec.getDesktop();
                                  final Page page = _page != null ? _page : desktop.getFirstPage();
                          Severity: Major
                          Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 2 hrs to fix

                            Method addTracking has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                protected void addTracking(List<String> series) {
                                    final Binding binding = _ctx.getBinding();
                                    final boolean dotracker = !_ctx.ignoreTracker();
                            
                                    if (binding != null && series != null && !series.isEmpty()) {

                              Method getCommandMethod has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private Method getCommandMethod(Class<?> clz, String command, CommandMethodInfoProvider cmdInfo,
                                          Map<Class<?>, Map<String, CachedItem<Method>>> cache, int commandParamCount, boolean isGlobal) {
                                      Map<String, CachedItem<Method>> methods;
                                      Method matchedMethodWithoutAnno = null;
                                      CachedItem<Method> method = null;
                              Severity: Major
                              Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 2 hrs to fix

                                Method tieValue has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void tieValue(Object comp, Object base, Object script, Object propName, Object value, Object basePath) {
                                        if (value instanceof IndirectBinding) {
                                            value = ((IndirectBinding) value).getValue(null);
                                        }
                                        if (base == null) { //track from component
                                Severity: Major
                                Found in zkbind/src/main/java/org/zkoss/bind/tracker/impl/TrackerImpl.java - About 2 hrs to fix

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

                                      private void init() {
                                          _items = new AbstractSequentialList<Listitem>() {
                                              public ListIterator<Listitem> listIterator(int index) {
                                                  return new ItemIter(index);
                                              }
                                  Severity: Major
                                  Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 2 hrs to fix

                                    Function _startDrag has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _startDrag(evt: zk.Event): void {
                                            zWatch.fire('onStartDrag', this, evt as unknown as zk.FireOptions);
                                    
                                            //disable selection
                                            zk(document.body).disableSelection(); // Bug #1820433
                                    Severity: Major
                                    Found in zk/src/main/resources/web/js/zk/drag.ts - About 2 hrs to fix

                                      File BindELResolver.java has 269 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      /* BindELResolver.java
                                      
                                          Purpose:
                                              
                                          Description:
                                      Severity: Minor
                                      Found in zkbind/src/main/java/org/zkoss/bind/xel/zel/BindELResolver.java - About 2 hrs to fix

                                        Method parse has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private void parse(PageDefinition pgdef, ProcessingInstruction pi) throws Exception {
                                                final String target = pi.getTarget();
                                                final Map<String, String> params = pi.parseData();
                                                if ("page".equals(target)) {
                                                    parsePageDirective(pgdef, pi, params);
                                        Severity: Major
                                        Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/Parser.java - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language