HerbCSO/ticketeer

View on GitHub

Showing 181 of 292 total issues

File raphael.js has 5645 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.2 - JavaScript Vector Library                          │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com)    │ \\
// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com)              │ \\
Severity: Major
Found in app/assets/javascripts/raphael.js - About 2 wks to fix

    File morris.js has 1622 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function() {
      var $, Morris, minutesSpecHelper, secondsSpecHelper,
        __slice = [].slice,
        __hasProp = {}.hasOwnProperty,
        __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    Severity: Major
    Found in app/assets/javascripts/morris.js - About 4 days to fix

      Function Grid has 422 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Morris.Grid = (function(_super) {
      
          __extends(Grid, _super);
      
          function Grid(options) {
      Severity: Major
      Found in app/assets/javascripts/morris.js - About 2 days to fix

        Function Line has 383 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          Morris.Line = (function(_super) {
        
            __extends(Line, _super);
        
            function Line(options) {
        Severity: Major
        Found in app/assets/javascripts/morris.js - About 1 day to fix

          Consider simplifying this complex logical expression.
          Open

                  if (params.opacity != null || 
                      params["stroke-width"] != null ||
                      params.fill != null ||
                      params.src != null ||
                      params.stroke != null ||
          Severity: Critical
          Found in app/assets/javascripts/raphael.js - About 1 day to fix

            Function setFillAndStroke has 248 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                setFillAndStroke = function (o, params) {
                    var node = o.node,
                        attrs = o.attrs,
                        vis = node.style.visibility;
                    node.style.visibility = "hidden";
            Severity: Major
            Found in app/assets/javascripts/raphael.js - About 1 day to fix

              Function setFillAndStroke has 212 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  setFillAndStroke = function (o, params) {
                      // o.paper.canvas.style.display = "none";
                      o.attrs = o.attrs || {};
                      var node = o.node,
                          a = o.attrs,
              Severity: Major
              Found in app/assets/javascripts/raphael.js - About 1 day to fix

                Function Bar has 206 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  Morris.Bar = (function(_super) {
                
                    __extends(Bar, _super);
                
                    function Bar(options) {
                Severity: Major
                Found in app/assets/javascripts/morris.js - About 1 day to fix

                  Function runAnimation has 194 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function runAnimation(anim, element, percent, status, totalOrigin, times) {
                          percent = toFloat(percent);
                          var params,
                              isInAnim,
                              isInAnimSet,
                  Severity: Major
                  Found in app/assets/javascripts/raphael.js - About 7 hrs to fix

                    Function Donut has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      Morris.Donut = (function(_super) {
                    
                        __extends(Donut, _super);
                    
                        Donut.prototype.defaults = {
                    Severity: Major
                    Found in app/assets/javascripts/morris.js - About 5 hrs to fix

                      Function addArrow has 137 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          addArrow = function (o, value, isEnd) {
                              if (o.type == "path") {
                                  var values = Str(value).toLowerCase().split("-"),
                                      p = o.paper,
                                      se = isEnd ? "end" : "start",
                      Severity: Major
                      Found in app/assets/javascripts/raphael.js - About 5 hrs to fix

                        Function setData has 134 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            Grid.prototype.setData = function(data, redraw) {
                              var e, idx, index, maxGoal, minGoal, ret, row, step, total, y, ykey, ymax, ymin, yval;
                              if (redraw == null) {
                                redraw = true;
                              }
                        Severity: Major
                        Found in app/assets/javascripts/morris.js - About 5 hrs to fix

                          Function animation has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  animation = function () {
                                      var Now = +new Date,
                                          l = 0;
                                      for (; l < animationElements.length; l++) {
                                          var e = animationElements[l];
                          Severity: Major
                          Found in app/assets/javascripts/raphael.js - About 4 hrs to fix

                            Function _path2curve has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    path2curve = R._path2curve = cacher(function (path, path2) {
                                        var pth = !path2 && paths(path);
                                        if (!path2 && pth.curve) {
                                            return pathClone(pth.curve);
                                        }
                            Severity: Major
                            Found in app/assets/javascripts/raphael.js - About 4 hrs to fix

                              Function _pathToAbsolute has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      pathToAbsolute = R._pathToAbsolute = function (pathArray) {
                                          var pth = paths(pathArray);
                                          if (pth.abs) {
                                              return pathClone(pth.abs);
                                          }
                              Severity: Major
                              Found in app/assets/javascripts/raphael.js - About 3 hrs to fix

                                Function Area has 87 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Morris.Area = (function(_super) {
                                    var areaDefaults;
                                
                                    __extends(Area, _super);
                                
                                
                                Severity: Major
                                Found in app/assets/javascripts/morris.js - About 3 hrs to fix

                                  Function _extractTransform has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          extractTransform = R._extractTransform = function (el, tstr) {
                                              if (tstr == null) {
                                                  return el._.transform;
                                              }
                                              tstr = Str(tstr).replace(/\.{3}|\u2026/g, el._.transform || E);
                                  Severity: Major
                                  Found in app/assets/javascripts/raphael.js - About 3 hrs to fix

                                    Function a2c has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {
                                                // for more information of where this math came from visit:
                                                // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
                                                var _120 = PI * 120 / 180,
                                                    rad = PI / 180 * (+angle || 0),
                                    Severity: Major
                                    Found in app/assets/javascripts/raphael.js - About 3 hrs to fix

                                      Function DonutSegment has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        Morris.DonutSegment = (function(_super) {
                                      
                                          __extends(DonutSegment, _super);
                                      
                                          function DonutSegment(cx, cy, inner, outer, p0, p1, color, backgroundColor, index, raphael) {
                                      Severity: Major
                                      Found in app/assets/javascripts/morris.js - About 3 hrs to fix

                                        Function addGradientFill has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            addGradientFill = function (element, gradient) {
                                                var type = "linear",
                                                    id = element.id + gradient,
                                                    fx = .5, fy = .5,
                                                    o = element.node,
                                        Severity: Major
                                        Found in app/assets/javascripts/raphael.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language