Showing 4,841 of 7,782 total issues

Method containsValue has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public boolean containsValue(Object value) {
        Entry[] tab = this.table;

        if (value == null) {
            for (int i = tab.length; i-- > 0;) {
Severity: Minor
Found in zkbind/src/main/java/org/zkoss/bind/impl/WeakIdentityMap.java - About 1 hr to fix

    Method doValidateSaveEvent has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private boolean doValidateSaveEvent(Component comp, SavePropertyBinding binding, Event evt, Set<Property> notifys) {
            //for a single binding, if it doesn't need to do validation, then we don't need to anything.
            if (binding.hasValidator()) {
                final BindContext ctx = BindContextUtil.newBindContext(_binder, binding, true, null, binding.getComponent(),
                        evt);

      Method writeObject has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
              s.defaultWriteObject();
      
              boolean written = false;
              if (_sortAsc instanceof RowComparator) {
      Severity: Minor
      Found in zul/src/main/java/org/zkoss/zul/Column.java - About 1 hr to fix

        Method afterUnmarshal has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private void afterUnmarshal(int cnt, int cntSel) {
                if (cnt != 0) {
                    for (Component child : getChildren()) {
                        if (child instanceof Treecols) {
                            _treecols = (Treecols) child;
        Severity: Minor
        Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

          Method fixGroupsInfoAfterInsert has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private void fixGroupsInfoAfterInsert(Row newItem) {
                  if (_isReplacingRow) //@see Grid.Renderer#render
                      return; //called by #insertBefore(), skip handling GroupInfo
          
                  if (newItem instanceof Group) {
          Severity: Minor
          Found in zul/src/main/java/org/zkoss/zul/Rows.java - About 1 hr to fix

            Method updateVisibleCount has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private void updateVisibleCount(Row row, boolean isRemove) {
                    if (row instanceof Group || row.isVisible()) {
                        final Group g = getGroup(row.getIndex());
            
                        // We shall update the number of the visible item in the following cases.
            Severity: Minor
            Found in zul/src/main/java/org/zkoss/zul/Rows.java - About 1 hr to fix

              Method renderProperties has 39 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);
              
                      render(renderer, "_value", marshall(_value));
                      //ZK-658: we have to render the value before constraint
              Severity: Minor
              Found in zul/src/main/java/org/zkoss/zul/impl/InputElement.java - About 1 hr to fix

                Function _respFailure has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        export function _respFailure(response: Response, reqInf: AuRequestInfo, rstatus: number): boolean {
                            var eru = zAu._errURIs['' + rstatus];
                            if (typeof eru == 'string') {
                                zUtl.go(eru);
                                return true;
                Severity: Minor
                Found in zk/src/main/resources/web/js/zk/au.ts - About 1 hr to fix

                  Function diff has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function diff(input, units, asFloat) {
                          var that, zoneDelta, output;
                  
                          if (!this.isValid()) {
                              return NaN;
                  Severity: Minor
                  Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

                    Function doCmdsNow has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function doCmdsNow(cmds: AuCommands): boolean {
                        var rtags = cmds.rtags || {}, ex: undefined | Error;
                        try {
                            while (cmds && cmds.length) {
                                if (zk.mounting) return false;
                    Severity: Minor
                    Found in zk/src/main/resources/web/js/zk/au.ts - About 1 hr to fix

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

                      function tabbox$mold$(out) {
                          var icon = this.$s('icon'),
                              uuid = this.uuid,
                              tabscroll = this.isTabscroll(),
                              tabs = this.tabs,
                      Severity: Minor
                      Found in zul/src/main/resources/web/js/zul/tab/mold/tabbox.js - About 1 hr to fix

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

                                    CallExpression(node) {
                                        const { parent, callee } = node;
                        
                                        if (callee.type !== AST_NODE_TYPES.ArrowFunctionExpression &&
                                            callee.type !== AST_NODE_TYPES.FunctionExpression
                        Severity: Minor
                        Found in eslint-plugin-zk/src/rules/noTopLevelScopingIIFE.ts - About 1 hr to fix

                          Function ensureInternal has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  function ensureInternal(node: PropertyNameNonComputedNode, docComment: DocComment, tsdoc: TextRange): void {
                                      const name = getPropertyNameNonComputed(node);
                                      const isAnnotatedInternal = docComment.modifierTagSet.isInternal();
                                      if (name.startsWith('_')) {
                                          if (!isAnnotatedInternal) {
                          Severity: Minor
                          Found in eslint-plugin-zk/src/rules/tsdocValidation.ts - About 1 hr to fix

                            Method toString has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static final String toString(Object o) {
                                    if (o == null) return null;
                                    if (o instanceof Date) return DateFormats.format((Date)o, false);
                                    if (o instanceof Class) {
                                        final Class cls = (Class)o;
                            Severity: Minor
                            Found in zcommon/src/main/java/org/zkoss/lang/Objects.java - About 1 hr to fix

                              Method checkAdd has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private void checkAdd(Item newVal, Item other, boolean replace) {
                                          //allowed type?
                                          if (!(newVal instanceof Element) && !(newVal instanceof Text)
                                          && !(newVal instanceof CData) && !(newVal instanceof Comment)
                                          && !(newVal instanceof EntityReference) && !(newVal instanceof Binary)
                              Severity: Minor
                              Found in zcommon/src/main/java/org/zkoss/idom/impl/AbstractGroup.java - About 1 hr to fix

                                Method doGet has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    protected void doGet(HttpServletRequest request, HttpServletResponse response)
                                            throws ServletException, IOException {
                                        Servlets.getBrowser(request); //update request info
                                
                                        final String path = Https.getThisServletPath(request);

                                  Method initialise has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    private static String initialise(Token currentToken,
                                                             int[][] expectedTokenSequences,
                                                             String[] tokenImage) {
                                      String eol = System.getProperty("line.separator", "\n");
                                      StringBuffer expected = new StringBuffer();
                                  Severity: Minor
                                  Found in zel/src/main/java/org/zkoss/zel/impl/parser/ParseException.java - About 1 hr to fix

                                    Method coerceToCollection has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        @SuppressWarnings({ "rawtypes", "unchecked" })
                                        private static Object coerceToCollection(Object obj, Class<?> type) {
                                            if(obj==null) return null;
                                            // since 8.0.0 support proxy form binding
                                            if (ProxyFactory.isProxyClass(type)) {
                                    Severity: Minor
                                    Found in zel/src/main/java/org/zkoss/zel/impl/lang/ELSupport.java - About 1 hr to fix

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

                                              public void render(final Treeitem treeItem, B70_ZK_2460_ContactTreeNode treeNode, int index) throws Exception {
                                                  B70_ZK_2460_ContactTreeNode ctn = treeNode;
                                                  B70_ZK_2460_Contact B70_ZK_2460_Contact = (B70_ZK_2460_Contact) ctn.getData();
                                                  final Treerow dataRow = new Treerow();
                                                  dataRow.setParent(treeItem);

                                        Method isAnnotation has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static boolean isAnnotation(String val) {
                                                int len = val.length();
                                                if (len >= 4) {
                                                    len = (val = val.trim()).length();
                                                    if (len >= 4 && val.charAt(0) == '@') {
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language