Showing 7,775 of 7,775 total issues

Method processFormLoadBindings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void processFormLoadBindings(Component comp, String formId, Annotation ann) {
        String loadExpr = null;
        final List<String> beforeCmds = new ArrayList<String>();
        final List<String> afterCmds = new ArrayList<String>();

Severity: Minor
Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

    Method collectSaveFormBinding has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private void collectSaveFormBinding(Component comp, SaveFormBinding binding, String command, Event evt,
                Set<Property> validates) {
            //ZK-3185: Enable form validation with reference and collection binding
            String formId = binding.getFormId();
            Component formComp = binding.getComponent();
    Severity: Minor
    Found in zkbind/src/main/java/org/zkoss/bind/impl/ValidationHelper.java - About 1 hr to fix

      Method addPropertyInitBinding0 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private void addPropertyInitBinding0(Component comp, String attr, String initExpr, Map<String, Object> bindingArgs,
                  String converterExpr, Map<String, Object> converterArgs) {
      
              final ComponentCtrl compCtrl = (ComponentCtrl) comp;
              final Annotation ann = AnnotationUtil.getSystemAnnotation(compCtrl, attr);
      Severity: Minor
      Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

        Method ungroup has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void ungroup(boolean ascending) {
                final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
                if (cmpr != null) {
        
                    final Grid grid = getGrid();
        Severity: Minor
        Found in zul/src/main/java/org/zkoss/zul/Column.java - About 1 hr to fix

          Method getVisibleItemsDFS has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private <T extends Component> boolean getVisibleItemsDFS(List<T> list, Map<Treeitem, Boolean> map, int[] data) {
                  for (T cmp : list) {
                      if (cmp instanceof Treeitem) {
                          if (data[4] >= data[0])
                              return false; // full
          Severity: Minor
          Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

            Method addVisibleItemCount has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                /*package*/ void addVisibleItemCount(int count) {
                    if (count != 0) {
                        _visibleItemCount += count;
                        final Grid grid = getGrid();
                        if (grid != null) {
            Severity: Minor
            Found in zul/src/main/java/org/zkoss/zul/Rows.java - About 1 hr to fix

              Method doSort has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  @SuppressWarnings("unchecked")
                  /*package*/ boolean doSort(boolean ascending) {
                      final Comparator cmpr = ascending ? _sortAsc : _sortDsc;
                      if (cmpr == null)
                          return false;
              Severity: Minor
              Found in zul/src/main/java/org/zkoss/zul/Treecol.java - About 1 hr to fix

                Method parseRange has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private static int[] parseRange(String range) {
                        range = range.toLowerCase(java.util.Locale.ENGLISH);
                        for (int j = 0, k, len = range.length(); (k = range.indexOf("bytes", j)) >= 0;) {
                            for (k += 5; k < len;) {
                                char cc = range.charAt(k++);
                Severity: Minor
                Found in zweb/src/main/java/org/zkoss/web/servlet/http/Https.java - About 1 hr to fix

                  Method browser has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private static boolean browser(String userAgent, String type) {
                          if (userAgent == null) //Bug ZK-1582: userAgent could be null if it is robot.
                              return false;
                  
                          int last = (type = type.trim()).length();
                  Severity: Minor
                  Found in zweb/src/main/java/org/zkoss/web/servlet/Servlets.java - About 1 hr to fix

                    Method removeFromQueryString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static final StringBuffer removeFromQueryString(StringBuffer sb, String name)
                                throws UnsupportedEncodingException {
                            name = encodeURIComponent(name);
                    
                            if (name == null || name.isEmpty())
                    Severity: Minor
                    Found in zweb/src/main/java/org/zkoss/web/servlet/http/Encodes.java - About 1 hr to fix

                      Function load has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.fn.load = function( url, params, callback ) {
                          var selector, type, response,
                              self = this,
                              off = url.indexOf( " " );
                      
                      
                      Severity: Minor
                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                        Function isValid has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function isValid(m) {
                                if (m._isValid == null) {
                                    var flags = getParsingFlags(m),
                                        parsedParts = some.call(flags.parsedDateParts, function (i) {
                                            return i != null;
                        Severity: Minor
                        Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

                          Function _rmDesktop has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  export function _rmDesktop(dt: zk.Desktop, dummy?: boolean): void {
                                      var url = zk.ajaxURI(undefined, { desktop: dt, au: true }),
                                          data = jq.param({
                                              dtid: dt.id,
                                              cmd_0: dummy ? 'dummy' : 'rmDesktop',
                          Severity: Minor
                          Found in zk/src/main/resources/web/js/zk/au.ts - About 1 hr to fix

                            Function clientInfo has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        export function clientInfo(dtid?: string): void {
                                            zAu._cInfoReg = true;
                                            var orient = '',
                                                dpr = 1.0;
                            
                            
                            Severity: Minor
                            Found in zk/src/main/resources/web/js/zk/au.ts - About 1 hr to fix

                              Function addAft has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          export function addAft(wgt: zk.Widget, ...codes: string[]): void {
                                              const p = wgt.parent,
                                                  onSizeChildren: zk.Widget[] = [],
                                                  fn = function (child: zk.Widget): void {
                                                      var 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 Request has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function Request(input, options) {
                                        options = options || {}
                                        var body = options.body
                                        if (Request.prototype.isPrototypeOf(input)) {
                                            if (input.bodyUsed) {
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/ext/fetch.js - About 1 hr to fix

                                  Function relativeTime$1 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
                                          var duration = createDuration(posNegDuration).abs(),
                                              seconds = round(duration.as('s')),
                                              minutes = round(duration.as('m')),
                                              hours = round(duration.as('h')),
                                  Severity: Minor
                                  Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

                                    Function rounding has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        rounding(valStr: string, ri: number, rounding: number, minus: boolean): string {
                                            switch (rounding) {
                                                case 0: //UP
                                                    valStr = up(valStr, ri);
                                                    break;
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/fmt/numfmt.ts - About 1 hr to fix

                                      Function _escapeQuote has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _escapeQuote(fmt: string, localizedSymbols: zk.LocalizedSymbols): Efmt {
                                              //note we do NOT support mixing of quoted and unquoted percent
                                              var cc, q = -2, shift = 0, ret = '', jdot = -1, purejdot = -1, pure = '', prej = -1,
                                                  validPercent = fmt ? !new RegExp('(\'[' + localizedSymbols.PERCENT + '|' + localizedSymbols.PER_MILL + ']+\')', 'g').test(fmt) : true;
                                                  //note we do NOT support mixing of quoted and unquoted percent|permill
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/fmt/numfmt.ts - About 1 hr to fix

                                        Function constructor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            constructor(widget: zk.Widget, currentTarget: object) {
                                                super(); // FIXME: params?
                                                this.$view = widget;
                                                this.$currentTarget = currentTarget;
                                                this._aftercmd = {};
                                        Severity: Minor
                                        Found in zkbind/src/main/resources/web/js/zkbind/Binder.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language