sodabrew/puppet-dashboard

View on GitHub

Showing 290 of 682 total issues

File jquery.jqplot.js has 7726 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Title: jqPlot Charts
 * 
 * Pure JavaScript plotting plugin for jQuery.
 * 
Severity: Major
Found in app/assets/javascripts/jquery.jqplot.js - About 3 wks to fix

    Function jqPlot has 1533 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function jqPlot() {
            // Group: Properties
            // These properties are specified at the top of the options object
            // like so:
            // > {
    Severity: Major
    Found in app/assets/javascripts/jquery.jqplot.js - About 1 wk to fix

      Function TokenList has 388 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.TokenList = function (input, settings) {
          //
          // Variables
          //
      
      
      Severity: Major
      Found in app/assets/javascripts/jquery.tokeninput.js - About 1 day to fix

        Function createTicks has 385 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.jqplot.LinearAxisRenderer.prototype.createTicks = function(plot) {
                // we're are operating on an axis here
                var ticks = this._ticks;
                var userTicks = this.ticks;
                var name = this.name;
        Severity: Major
        Found in app/assets/javascripts/jquery.jqplot.js - About 1 day to fix

          File jquery.colorbox.js has 763 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
              jQuery Colorbox v1.4.10 - 2013-04-02
              (c) 2013 Jack Moore - jacklmoore.com/colorbox
              license: http://www.opensource.org/licenses/mit-license.php
          */
          Severity: Major
          Found in app/assets/javascripts/jquery.colorbox.js - About 1 day to fix

            Function checkIntersection has 264 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function checkIntersection(gridpos, plot) {
                        var series = plot.series;
                        var i, j, k, s, r, x, y, theta, sm, sa, minang, maxang;
                        var d0, d, p, pp, points, bw, hp;
                        var threshold, t;
            Severity: Major
            Found in app/assets/javascripts/jquery.jqplot.js - About 1 day to fix

              File jqplot.barRenderer.js has 605 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * jqPlot
               * Pure JavaScript plotting plugin using jQuery
               *
               * Version: 1.0.8
              Severity: Major
              Found in app/assets/javascripts/jqplot.barRenderer.js - About 1 day to fix

                Function draw has 262 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.jqplot.CanvasGridRenderer.prototype.draw = function() {
                        this._ctx = this._elem.get(0).getContext("2d");
                        var ctx = this._ctx;
                        var axes = this._axes;
                        // Add the grid onto the grid canvas.  This is the bottom most layer.
                Severity: Major
                Found in app/assets/javascripts/jquery.jqplot.js - About 1 day to fix

                  Function draw has 223 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      $.jqplot.BarRenderer.prototype.draw = function(ctx, gridData, options, plot) {
                          var i;
                          // Ughhh, have to make a copy of options b/c it may be modified later.
                          var opts = $.extend({}, options);
                          var shadow = (opts.shadow != undefined) ? opts.shadow : this.shadow;
                  Severity: Major
                  Found in app/assets/javascripts/jqplot.barRenderer.js - About 1 day to fix

                    Function ajaxSubmit has 222 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    $.fn.ajaxSubmit = function(options) {
                        // fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
                        if (!this.length) {
                            log('ajaxSubmit: skipping submit process - no element selected');
                            return this;
                    Severity: Major
                    Found in app/assets/javascripts/jquery.form.js - About 1 day to fix

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

                          $.jqplot.CategoryAxisRenderer.prototype.pack = function(pos, offsets) {
                              var ticks = this._ticks;
                              var max = this.max;
                              var min = this.min;
                              var offmax = offsets.max;
                      Severity: Major
                      Found in app/assets/javascripts/jqplot.categoryAxisRenderer.js - About 1 day to fix

                        File jqplot.categoryAxisRenderer.js has 508 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /**
                         * jqPlot
                         * Pure JavaScript plotting plugin using jQuery
                         *
                         * Version: 1.0.8
                        Severity: Major
                        Found in app/assets/javascripts/jqplot.categoryAxisRenderer.js - About 1 day to fix

                          Function pack has 193 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              $.jqplot.LinearAxisRenderer.prototype.pack = function(pos, offsets) {
                                  // Add defaults for repacking from resetTickValues function.
                                  pos = pos || {};
                                  offsets = offsets || this._offsets;
                                  
                          Severity: Major
                          Found in app/assets/javascripts/jquery.jqplot.js - About 7 hrs to fix

                            Function draw has 188 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    this.draw = function(){
                                        if (this.drawIfHidden || this.target.is(':visible')) {
                                            this.target.trigger('jqplotPreDraw');
                                            var i,
                                                j,
                            Severity: Major
                            Found in app/assets/javascripts/jquery.jqplot.js - About 7 hrs to fix

                              Function draw has 181 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $.jqplot.LineRenderer.prototype.draw = function(ctx, gd, options, plot) {
                                      var i;
                                      // get a copy of the options, so we don't modify the original object.
                                      var opts = $.extend(true, {}, options);
                                      var shadow = (opts.shadow != undefined) ? opts.shadow : this.shadow;
                              Severity: Major
                              Found in app/assets/javascripts/jquery.jqplot.js - About 7 hrs to fix

                                Function init has 175 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        this.init = function(target, data, options) {
                                            options = options || {};
                                            for (var i=0; i<$.jqplot.preInitHooks.length; i++) {
                                                $.jqplot.preInitHooks[i].call(this, target, data, options);
                                            }
                                Severity: Major
                                Found in app/assets/javascripts/jquery.jqplot.js - About 7 hrs to fix

                                  Function sprintf has 171 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      $.jqplot.sprintf = function() {
                                          function pad(str, len, chr, leftJustify) {
                                              var padding = (str.length >= len) ? '' : Array(1 + len - str.length >>> 0).join(chr);
                                              return leftJustify ? str + padding : padding + str;
                                  
                                  
                                  Severity: Major
                                  Found in app/assets/javascripts/jquery.jqplot.js - About 6 hrs to fix

                                    File jquery.tokeninput.js has 446 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*
                                     * jQuery Plugin: Tokenizing Autocomplete Text Entry
                                     * Version 1.1
                                     *
                                     * Copyright (c) 2009 James Smith (http://loopj.com)
                                    Severity: Minor
                                    Found in app/assets/javascripts/jquery.tokeninput.js - About 6 hrs to fix

                                      Function jqplotToImageCanvas has 164 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $.fn.jqplotToImageCanvas = function(options) {
                                      
                                              options = options || {};
                                              var x_offset = (options.x_offset == null) ? 0 : options.x_offset;
                                              var y_offset = (options.y_offset == null) ? 0 : options.y_offset;
                                      Severity: Major
                                      Found in app/assets/javascripts/jquery.jqplot.js - About 6 hrs to fix

                                        Function showTooltip has 154 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function showTooltip(plot, series, neighbor) {
                                                // neighbor looks like: {seriesIndex: i, pointIndex:j, gridData:p, data:s.data[j]}
                                                // gridData should be x,y pixel coords on the grid.
                                                // add the plot._gridPadding to that to get x,y in the target.
                                                var hl = plot.plugins.highlighter;
                                        Severity: Major
                                        Found in app/assets/javascripts/jqplot.highlighter.js - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language