zammad/zammad

View on GitHub

Showing 2,064 of 4,422 total issues

Avoid deeply nested control flow statements.
Open

            if (m.title) { (attributes || (attributes = {})).title = m.title; }
Severity: Major
Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

              if (ch == "!" || ch == "=") stream.eat("=")
    Severity: Major
    Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

      Function on has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function on( elem, types, selector, data, fn, one ) {
      Severity: Minor
      Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

        Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            init: function( elem, options, prop, end, easing, unit ) {
        Severity: Minor
        Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

          Function boxModelAdjustment has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
          Severity: Minor
          Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        else if (target.hasClass('new')){
                                            if (month === 11){
                                                month = 0;
                                                year += 1;
                                            }
            Severity: Major
            Found in app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if (this.o.minViewMode === 1){
                                                  this._setDate(UTCDate(year, month, day));
                                                  this.showMode();
                                              } else {
                                                  this.showMode(-1);
              Severity: Major
              Found in app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                if (this.o.minViewMode === 2){
                                                    this._setDate(UTCDate(year, month, day));
                                                }
                Severity: Major
                Found in app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                if (hours > 12) {
                                  hours = hours - 12;
                                }
                  Severity: Major
                  Found in app/assets/javascripts/app/lib/bootstrap/bootstrap-timepicker.js - About 45 mins to fix

                    Function setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                    Severity: Minor
                    Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                if (typeof q === OBJ_TYPE && q.length > 0) {
                                                    if (q.length === 2) {
                                                        if (typeof q[1] == FUNC_TYPE) {
                                                            // assign modified match
                                                            this[q[0]] = q[1].call(this, match);
                      Severity: Major
                      Found in app/assets/javascripts/app/lib/base/ua-parser.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                                if (this.viewMode === 1)
                                                                    this._trigger('changeYear', this.viewDate);
                        Severity: Major
                        Found in app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                          if (month === 0){
                                                              month = 11;
                                                              year -= 1;
                                                          }
                                                          else {
                          Severity: Major
                          Found in app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    for ( match in context ) {
                            
                                                        // Properties of context are called as methods if possible
                                                        if ( isFunction( this[ match ] ) ) {
                                                            this[ match ]( context[ match ] );
                            Severity: Major
                            Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( node && node.value === id ) {
                                                          return [ elem ];
                                                      }
                              Severity: Major
                              Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    if ( Expr.relative[ tokens[ j ].type ] ) {
                                                        break;
                                                    }
                                Severity: Major
                                Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if ( ( event.result = ret ) === false ) {
                                                              event.preventDefault();
                                                              event.stopPropagation();
                                                          }
                                  Severity: Major
                                  Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( hasScripts ) {
                                    
                                                            // Support: Android <=4.0 only, PhantomJS 1 only
                                                            // push.apply(_, arraylike) throws on ancient WebKit
                                                            jQuery.merge( scripts, getAll( node, "script" ) );
                                    Severity: Major
                                    Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if ( rscriptType.test( node.type || "" ) &&
                                                              !dataPriv.access( node, "globalEval" ) &&
                                                              jQuery.contains( doc, node ) ) {
                                      
                                                              if ( node.src && ( node.type || "" ).toLowerCase()  !== "module" ) {
                                      Severity: Major
                                      Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                                                    cur += clazz + " ";
                                                                }
                                        Severity: Major
                                        Found in app/assets/javascripts/app/lib/core/jquery-3.6.0.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language