Showing 4,841 of 7,782 total issues

Function computeMonthsParse has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function computeMonthsParse() {
        function cmpLenRev(a, b) {
            return b.length - a.length;
        }

Severity: Minor
Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

    Function getWidthOrHeight has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function getWidthOrHeight( elem, dimension, extra ) {
    
        // Start with computed style
        var styles = getStyles( elem ),
    
    
    Severity: Minor
    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

      Function localeErasParse has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function localeErasParse(eraName, format, strict) {
              var i,
                  l,
                  eras = this.eras(),
                  name,
      Severity: Minor
      Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

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

        function calendar$mold$(out) {
            var renderer = zul.db.Renderer,
                uuid = this.uuid,
                view = this._view,
                localizedSymbols = this.getLocalizedSymbols(),
        Severity: Minor
        Found in zul/src/main/resources/web/js/zul/db/mold/calendar.js - About 1 hr to fix

          Function scrollbarWidth has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              scrollbarWidth(): number {
                  var devicePixelRatio = zUtl.getDevicePixelRatio(),
                      body = document.body;
                  if (this['_lastDevicePixelRatio'] != devicePixelRatio) {
                      this['_lastDevicePixelRatio'] = devicePixelRatio;
          Severity: Minor
          Found in zk/src/main/resources/web/js/zk/dom.ts - About 1 hr to fix

            Function bindTapHold_ has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                bindTapHold_() {
                    if (this.isListen('onRightClick') || (window.zul && this instanceof zul.Widget && this.getContext())) { //also register context menu to tapHold event
                        this._holdTime = 800;
                        this._startHold = (evt: JQuery.TouchEventBase): void => {
                            if (!this._rightClickPending) {
            Severity: Minor
            Found in zk/src/main/resources/web/js/zk/domtouch.ts - About 1 hr to fix

              Function _updateDrag has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _updateDrag(pt: zk.Offset, evt: zk.Event): void {
                      if (!this.dragging) {
                          let v = this.opts.initSensitivity;
                          if (v && pt[0] <= _initPt[0] + v && pt[0] >= _initPt[0] - v
                          && pt[1] <= _initPt[1] + v && pt[1] >= _initPt[1] - v)
              Severity: Minor
              Found in zk/src/main/resources/web/js/zk/drag.ts - About 1 hr to fix

                Function create has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    create(context) {
                        const sourceCode = context.getSourceCode();
                        return {
                            CallExpression(node) {
                                const { callee } = node;
                Severity: Minor
                Found in eslint-plugin-zk/src/rules/preferNativeInstanceof.ts - About 1 hr to fix

                  Method newSavePropertyBinding has 11 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      protected SavePropertyBinding newSavePropertyBinding(Component comp, String attr, String saveAttr, String saveExpr,
                              ConditionType conditionType, String command, Map<String, Object> bindingArgs, String converterExpr,
                              Map<String, Object> converterArgs, String validatorExpr, Map<String, Object> validatorArgs) {
                  Severity: Major
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                    Method newElement has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private Element newElement(String nsURI, String tname)
                        throws SAXException {
                            if (nsURI == null) nsURI = "";
                    
                            final int j = tname.indexOf(':');
                    Severity: Minor
                    Found in zcommon/src/main/java/org/zkoss/idom/input/SAXHandler.java - About 1 hr to fix

                      Method coalesce has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public final int coalesce(boolean recursive) {
                              int count = 0;
                              Item found = null;
                              StringBuilder sb = new StringBuilder();
                              for (final Iterator<Item> it = _children.iterator(); it.hasNext();) {
                      Severity: Minor
                      Found in zcommon/src/main/java/org/zkoss/idom/impl/AbstractGroup.java - About 1 hr to fix

                        Method myGetCloseMethods has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private static final Method[]
                            myGetCloseMethods(final Class<?> cls, final String name,
                            final Class<?>[] argTypes, final boolean bySubclass) {
                        //        assert argTypes != null: "Caller shall handle null";
                                final List<Method> mtds = new LinkedList<Method>();
                        Severity: Minor
                        Found in zcommon/src/main/java/org/zkoss/lang/Classes.java - About 1 hr to fix

                          Method coerce has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static Object coerce(Class<?> cls, Object val, boolean nullable)
                              throws ClassCastException {
                                  if (nullable || val != null)
                                      return coerce(cls, val);
                          
                          
                          Severity: Minor
                          Found in zcommon/src/main/java/org/zkoss/lang/Classes.java - About 1 hr to fix

                            Method adjustBeginLineColumn has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              public void adjustBeginLineColumn(int newLine, int newCol)
                              {
                                int start = tokenBegin;
                                int len;
                            
                            Severity: Minor
                            Found in zel/src/main/java/org/zkoss/zel/impl/parser/SimpleCharStream.java - About 1 hr to fix

                              Method updateCol has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      public void updateCol(String id, int col){
                                          DefaultTreeNode<TestObject> rootNode;
                                          if (id.startsWith("Row A") || id.startsWith("SubRow A")) {
                                              rootNode=(DefaultTreeNode<TestObject>)mymodelA.getRoot();
                                          } else {

                                Method doAfterCompose has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    @Override public void doAfterCompose(final Listbox comp) throws Exception {
                                        super.doAfterCompose(comp);
                                        List names = new ArrayList();
                                        for (int i = 0; i < 10; i++) {
                                            names.add("Jasmin" + i);
                                Severity: Minor
                                Found in zktest/src/main/java/org/zkoss/zktest/test2/B70_ZK_2534.java - About 1 hr to fix

                                  Method fillTree has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private void fillTree(Tree myTree, DefaultTreeModel mymodel, String treeName) {
                                          myTree.setItemRenderer(new TreeitemRenderer() {
                                              public void render(Treeitem treeItem, Object data, int id)
                                                      throws Exception {
                                  

                                    Method onCreate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public void onCreate(){
                                            iframe = (Iframe)getFellow("w2").getFellow("ifr");
                                            lb = (Listbox)getFellow("w1").getFellow("lb");
                                            lb.setItemRenderer(new FileitemRenderer());
                                            lb.setModel(fileModel);
                                    Severity: Minor
                                    Found in zktest/src/main/java/org/zkoss/zktest/test2/MainWindow.java - About 1 hr to fix

                                      Method outEndJavaScriptFunc has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private static void outEndJavaScriptFunc(Execution exec, Writer out, String extra, boolean aupg, boolean afterLoad)
                                                  throws IOException {
                                              final String ac = outResponseJavaScripts(exec, true);
                                              if (aupg) {
                                                  if (extra.length() > 0 || ac.length() > 0) {
                                      Severity: Minor
                                      Found in zk/src/main/java/org/zkoss/zk/ui/sys/HtmlPageRenders.java - About 1 hr to fix

                                        Method mapChildren has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            protected void mapChildren(DesktopCtrl desktopCtrl, List<String> uuids, List<String[]> idmap, List<Object[]> evtmap,
                                                    Component comp) {
                                                for (Component p = comp.getFirstChild(); p != null; p = p.getNextSibling()) {
                                                    if (p instanceof StubsComponent) {
                                                        final String[] kiduuids = ((StubsComponent) p)._uuids;
                                        Severity: Minor
                                        Found in zk/src/main/java/org/zkoss/zk/ui/sys/StubsComponent.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language