FanaHOVA/blazer

View on GitHub

Showing 544 of 841 total issues

Avoid deeply nested control flow statements.
Open

            for ( type in data.events ) {
              if ( special[ type ] ) {
                jQuery.event.remove( elem, type );

              // This is a shortcut to avoid jQuery.event.remove's overhead
Severity: Major
Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

              if (name === 'v-for') {
                checkFor(node, ("v-for=\"" + value + "\""), errors);
              } else {
                checkExpression(value, (name + "=\"" + value + "\""), errors);
              }
    Severity: Major
    Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

            switch (c) {
              case 0x22: inDouble = true; break // "
              case 0x27: inSingle = true; break // '
              case 0x28: paren++; break         // (
              case 0x29: paren--; break         // )
      Severity: Major
      Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

              if (expression === undefined) {
                // first filter, end of expression
                lastFilterIndex = i + 1;
                expression = exp.slice(0, i).trim();
              } else {
        Severity: Major
        Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                  if ("development" !== 'production' && name === 'model') {
                    checkForAliasModel(el, value);
                  }
          Severity: Major
          Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      if (commentEnd >= 0) {
                        advance(commentEnd + 3);
                        continue
                      }
            Severity: Major
            Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          for (var i$1 = 0; i$1 < children.length; i$1++) {
                            if (!hydrate(childNodes[i$1], children[i$1], insertedVnodeQueue)) {
                              childrenMatch = false;
                              break
                            }
              Severity: Major
              Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            for (var i = 0; i < cbs.create.length; ++i) {
                              cbs.create[i](emptyNode, vnode.parent);
                            }
                Severity: Major
                Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                          if (c.text && last && last.text) {
                            last.text += c.text;
                          } else {
                            // inherit parent namespace
                            if (ns) {
                  Severity: Major
                  Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                            if (argMatch && (arg = argMatch[1])) {
                              name = name.slice(0, -(arg.length + 1));
                            }
                    Severity: Major
                    Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

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

                          helpers.drawRoundedRectangle = function(ctx, x, y, width, height, radius) {
                      Severity: Minor
                      Found in app/assets/javascripts/blazer/Chart.js - About 45 mins to fix

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

                          el,
                          name,
                          rawName,
                          value,
                          arg,
                        Severity: Minor
                        Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

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

                            function addVnodes (parentElm, before, vnodes, startIdx, endIdx, insertedVnodeQueue) {
                          Severity: Minor
                          Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                      if (conditionalEnd >= 0) {
                                        advance(conditionalEnd + 2);
                                        continue
                                      }
                            Severity: Major
                            Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                      for (var i = 0; i < old.length; i++) { old[i] = cur[i]; }
                              Severity: Major
                              Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            if ("development" !== 'production' &&
                                                typeof console !== 'undefined' &&
                                                !bailed) {
                                              bailed = true;
                                              console.warn('Parent: ', elm);
                                Severity: Major
                                Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                              if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
                                                invokeInsertHook(vnode, insertedVnodeQueue, true);
                                                return oldVnode
                                              } else {
                                                warn(
                                  Severity: Major
                                  Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                              if (name === 'innerHtml') { name = 'innerHTML'; }
                                    Severity: Major
                                    Found in app/assets/javascripts/blazer/vue.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (!spanGaps && lastDrawnIndex === (index - 1)) {
                                                                      if (loop) {
                                                                          ctx.lineTo(fillPoint.x, fillPoint.y);
                                                                      } else {
                                                                          ctx.lineTo(previous._view.x, fillPoint);
                                      Severity: Major
                                      Found in app/assets/javascripts/blazer/Chart.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if (lastDrawnIndex !== (index - 1)) {
                                                                        // There was a gap and this is the first point after the gap. If we've never drawn a point, this is a special case.
                                                                        // If the first data point is NaN, then there is no real gap to skip
                                                                        if (spanGaps && lastDrawnIndex !== -1) {
                                                                            // We are spanning the gap, so simple draw a line to this point
                                        Severity: Major
                                        Found in app/assets/javascripts/blazer/Chart.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language