Showing 4,841 of 7,782 total issues

Function adjustCSS has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function adjustCSS( elem, prop, valueParts, tween ) {
    var adjusted, scale,
        maxIterations = 20,
        currentValue = tween ?
            function() {
Severity: Minor
Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

    Function access has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
        var i = 0,
            len = elems.length,
            bulk = key == null;
    
    
    Severity: Minor
    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

      Function stop has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          stop: function( type, clearQueue, gotoEnd ) {
              var stopQueue = function( hooks ) {
                  var stop = hooks.stop;
                  delete hooks.stop;
                  stop( gotoEnd );
      Severity: Minor
      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

        Function style has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            style: function( elem, name, value, extra ) {
        
                // Don't set styles on text and comment nodes
                if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                    return;
        Severity: Minor
        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

          Function dispatch has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              dispatch: function( nativeEvent ) {
          
                  var i, j, ret, matched, handleObj, handlerQueue,
                      args = new Array( arguments.length ),
          
          
          Severity: Minor
          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                constructor(control: zk.Object & {node?: HTMLElement} | undefined, node: HTMLElement | undefined, opts: DraggableOptions) {
                    super();
                    if (!_stackup) {
                    //IE: if we don't insert stackup at beginning, dragging is slow
                        _stackup = jq.newStackup(undefined, 'z_ddstkup');
            Severity: Minor
            Found in zk/src/main/resources/web/js/zk/drag.ts - About 1 hr to fix

              Function _checkBarRequired has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _checkBarRequired(): void {
                      var cave = this.cave,
                          scroller = this.scroller,
                          frozen = this.widget.frozen;
                      //check if horizontal scroll-bar required
              Severity: Minor
              Found in zul/src/main/resources/web/js/zul/Scrollbar.ts - About 1 hr to fix

                Method NonLiteral has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  final public void NonLiteral() throws ParseException {
                    if (jj_2_6(5)) {
                      LambdaExpressionOrInvocation();
                    } else {
                      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
                Severity: Minor
                Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                  Method getValue has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public Object getValue(EvaluationContext ctx) throws ELException {
                          // Lambda parameters
                          if (ctx.isLambdaArgument(this.image)) {
                              return ctx.getLambdaArgument(this.image);
                          }
                  Severity: Minor
                  Found in zel/src/main/java/org/zkoss/zel/impl/parser/AstIdentifier.java - About 1 hr to fix

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

                        @SuppressWarnings("deprecation")
                        private void init(Window window,String value1,String value2,String value3) {
                            final Binder binder = new DefaultBinder(); 
                            binder.init(window, new MyViewModel(value1,value2,value3), null);
                            window.setAttribute("vm", binder.getViewModel());
                    Severity: Minor
                    Found in zktest/src/main/java/org/zkoss/zktest/bind/basic/DeferInitVM.java - About 1 hr to fix

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

                          @Override
                          public void doAfterCompose(Component comp) throws Exception {
                              super.doAfterCompose(comp);
                              
                              @SuppressWarnings("unchecked")

                        Method addForwards has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static void addForwards(Component comp, Object controller, char separator) {
                                final Class cls = controller.getClass();
                                final Method[] mtds = cls.getMethods();
                                for (int j = 0; j < mtds.length; ++j) {
                                    final Method md = mtds[j];
                        Severity: Minor
                        Found in zk/src/main/java/org/zkoss/zk/ui/util/ConventionWires.java - About 1 hr to fix

                          Method injectComponent has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  @SuppressWarnings("unchecked")
                                  private void injectComponent(InjectionFunctor injector, Iterable<Component> comps) {
                                      Class<?> type = injector.getType();
                                      boolean isField = injector instanceof FieldFunctor;
                                      // Array
                          Severity: Minor
                          Found in zk/src/main/java/org/zkoss/zk/ui/select/Selectors.java - About 1 hr to fix

                            Method parsePageDirective has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private static void parsePageDirective(PageDefinition pgdef, ProcessingInstruction pi, Map<String, String> params)
                                        throws Exception {
                                    for (Map.Entry<String, String> me : pi.parseData().entrySet()) {
                                        final String nm = me.getKey();
                                        final String val = me.getValue();
                            Severity: Minor
                            Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/Parser.java - About 1 hr to fix

                              Method renderProperties has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected void renderProperties(ContentRenderer renderer) throws IOException {
                                      _initialized = true;
                                      render(renderer, "id", _id);
                                      if (_auxinf != null && !_auxinf.visible) //don't call isVisible since it might be overriden (backward compatible)
                                          renderer.render("visible", false);
                              Severity: Minor
                              Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 1 hr to fix

                                Method beforeHostChildAdded has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void beforeHostChildAdded(Component child, Component insertBefore, int indexOfInsertBefore) {
                                        if (log.isDebugEnabled()) {
                                            log.debug("beforeHostChildAdded {}, {}, in this shadow {}", child,
                                                    insertBefore, ShadowElementsCtrl.getCurrentInfo());
                                        }
                                Severity: Minor
                                Found in zk/src/main/java/org/zkoss/zk/ui/HtmlShadowElement.java - About 1 hr to fix

                                  Method enableServerPush0 has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private boolean enableServerPush0(ServerPush sp, boolean enable) {
                                          if (_sess == null)
                                              throw new IllegalStateException("Server push cannot be enabled in a working thread");
                                  
                                          final boolean serverPushAlreadyExists = _spush != null;
                                  Severity: Minor
                                  Found in zk/src/main/java/org/zkoss/zk/ui/impl/DesktopImpl.java - About 1 hr to fix

                                    Method destroy has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public void destroy() {
                                            Visualizer visualizer = null;
                                            try {
                                                if (_desktop != null) {
                                                    Execution execution = _desktop.getExecution();
                                    Severity: Minor
                                    Found in zk/src/main/java/org/zkoss/zk/ui/impl/PageImpl.java - About 1 hr to fix

                                      Method sessionTimeout has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private void sessionTimeout(HttpServletRequest request, HttpServletResponse response, WebApp wapp, String dtid,
                                                  boolean compress) throws ServletException, IOException {
                                              final String sid = request.getHeader("ZK-SID");
                                              if (sid != null) {
                                                  //B65-ZK-2464 : Possible XSS Vulnerability in HTTP Header
                                      Severity: Minor
                                      Found in zk/src/main/java/org/zkoss/zk/au/http/DHtmlUpdateServlet.java - About 1 hr to fix

                                        Method initValidationMessages has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private ValidationMessages initValidationMessages(BindEvaluatorX evalx, Component comp, Binder binder) {
                                                final ComponentCtrl compCtrl = (ComponentCtrl) comp;
                                                final Annotation idanno = compCtrl.getAnnotation(VALIDATION_MESSAGES_ATTR, ID_ANNO);
                                                final Annotation initanno = compCtrl.getAnnotation(VALIDATION_MESSAGES_ATTR, INIT_ANNO);
                                                Object vmessages = null;
                                        Severity: Minor
                                        Found in zkbind/src/main/java/org/zkoss/bind/BindComposer.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language