backlogs/redmine_backlogs

View on GitHub

Showing 993 of 2,083 total issues

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 assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js - About 1 day to fix

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

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

      Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;
      Severity: Major
      Found in assets/javascripts/jquery/jquery.jqplot/jquery.js - About 1 day to fix

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

        /**
         * jqPlot
         * Pure JavaScript plotting plugin using jQuery
         *
         * Version: 1.0.0

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

          /**
           * jqPlot
           * Pure JavaScript plotting plugin using jQuery
           *
           * Version: 1.0.0

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

            /**
             * jqPlot
             * Pure JavaScript plotting plugin using jQuery
             *
             * Version: 1.0.0

              Function _tabify has 229 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _tabify: function( init ) {
                      var self = this,
                          o = this.options,
                          fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
              
              

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

                    $.jqplot.BarRenderer.prototype.draw = function(ctx, gridData, options) {
                        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 assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.barRenderer.js - About 1 day to fix

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

                      $.jqplot.CanvasOverlay.prototype.draw = function(plot) {
                          var obj, 
                              objs = this.objects,
                              mr = this.markerRenderer,
                              start,

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

                        $.jqplot.LogAxisRenderer.prototype.createTicks = function(plot) {
                            // we're are operating on an axis here
                            var ticks = this._ticks;
                            var userTicks = this.ticks;
                            var name = this.name;

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

                      /**
                       * jqPlot
                       * Pure JavaScript plotting plugin using jQuery
                       *
                       * Version: 1.0.0

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

                            $.jqplot.PyramidAxisRenderer.prototype.createTicks = function(plot) {
                                // we're are operating on an axis here
                                var userTicks = this.ticks;
                                // databounds were set on axis initialization.
                                var db = this._dataBounds;

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

                          /* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */
                          /*
                           * jQuery MultiSelect UI Widget 1.13
                           * Copyright (c) 2012 Eric Hynds
                           * Patched for redmine_backlogs: use selected attribute instead of this.selected for initialization
                          Severity: Minor
                          Found in assets/javascripts/jquery/jquery.multiselect.js - About 7 hrs to fix

                            Function bar has 195 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        bar: function (inst) {
                                            var self        = this,
                                                e            = null,
                                                _mousedown, _mouseup, _mousemove, _html;
                            

                              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 assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js - About 7 hrs to fix

                                Function SearchPanel has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                                Open

                                function SearchPanel(name, mode, resultsPath)
                                    {
                                    if (!name || !mode || !resultsPath)
                                        {  alert("Incorrect parameters to SearchPanel.");  };
                                
                                Severity: Minor
                                Found in assets/javascripts/jquery/jquery.jqplot/docs/javascript/main.js - About 7 hrs to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                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 assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js - About 7 hrs to fix

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

                                  /**
                                   * jqPlot
                                   * Pure JavaScript plotting plugin using jQuery
                                   *
                                   * Version: 1.0.0

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

                                    /**
                                     * jqPlot
                                     * Pure JavaScript plotting plugin using jQuery
                                     *
                                     * Version: 1.0.0

                                      File main.js has 472 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      // This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
                                      // Natural Docs is licensed under the GPL
                                      
                                      
                                      //
                                      Severity: Minor
                                      Found in assets/javascripts/jquery/jquery.jqplot/docs/javascript/main.js - About 7 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language