FanaHOVA/blazer

View on GitHub

Showing 544 of 841 total issues

Function _update has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Vue.prototype._update = function (vnode, hydrating) {
    var vm = this;
    if (vm._isMounted) {
      callHook(vm, 'beforeUpdate');
    }
Severity: Minor
Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

    Function hwb2rgb has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function hwb2rgb(hwb) {
      var h = hwb[0] / 360,
          wh = hwb[1] / 100,
          bl = hwb[2] / 100,
          ratio = wh + bl,
    Severity: Minor
    Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

      Function updateElement has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              updateElement: function(rectangle, index, reset) {
                  var me = this;
                  var meta = me.getMeta();
                  var xScale = me.getScaleForId(meta.xAxisID);
                  var yScale = me.getScaleForId(meta.yAxisID);
      Severity: Minor
      Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

        Function updateElement has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                updateElement: function(rectangle, index, reset) {
                    var me = this;
                    var meta = me.getMeta();
                    var xScale = me.getScaleForId(meta.xAxisID);
                    var yScale = me.getScaleForId(meta.yAxisID);
        Severity: Minor
        Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

          Function calculatePointY has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  calculatePointY: function(value, index, datasetIndex) {
                      var me = this;
                      var chart = me.chart;
                      var meta = me.getMeta();
                      var yScale = me.getScaleForId(meta.yAxisID);
          Severity: Minor
          Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

            Function $destroy has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              Vue.prototype.$destroy = function () {
                var vm = this;
                if (vm._isBeingDestroyed) {
                  return
                }
            Severity: Minor
            Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

              Function handleEvent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      handleEvent: function(e) {
                          var me = this;
                          var options = me.options || {};
                          var hoverOptions = options.hover;
                          var changed = false;
              Severity: Minor
              Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                Function dayOfYearFromWeekInfo has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function dayOfYearFromWeekInfo(config) {
                        var w, weekYear, week, weekday, dow, doy, temp;
                
                        w = config._w;
                        if (w.GG != null || w.W != null || w.E != null) {
                Severity: Minor
                Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                  Function drawLegendBox has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  var drawLegendBox = function(x, y, legendItem) {
                                      if (isNaN(boxWidth) || boxWidth <= 0) {
                                          return;
                                      }
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                    Function highlight has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      var highlight = function($element, pattern) {
                        if (typeof pattern === 'string' && !pattern.length) return;
                        var regex = (typeof pattern === 'string') ? new RegExp(pattern, 'i') : pattern;
                    
                        var highlight = function(node) {
                    Severity: Minor
                    Found in app/assets/javascripts/blazer/selectize.js - About 1 hr to fix

                      Method process_vars has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            def process_vars(statement, data_source)
                              (@bind_vars ||= []).concat(Blazer.extract_vars(statement)).uniq!
                              @bind_vars.each do |var|
                                params[var] ||= Blazer.data_sources[data_source].variable_defaults[var]
                              end
                      Severity: Minor
                      Found in app/controllers/blazer/base_controller.rb - About 1 hr to fix

                        Function onBlur has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            onBlur: function(e, dest) {
                              var self = this;
                              if (!self.isFocused) return;
                              self.isFocused = false;
                        
                        
                        Severity: Minor
                        Found in app/assets/javascripts/blazer/selectize.js - About 1 hr to fix

                          Function startOf has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  startOf : function (units) {
                                      units = normalizeUnits(units);
                                      // the following switch intentionally omits break keywords
                                      // to utilize falling through the cases.
                                      switch (units) {
                          Severity: Minor
                          Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                            Function makeMoment has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function makeMoment(config) {
                                    var input = config._i,
                                        format = config._f,
                                        res;
                            
                            
                            Severity: Minor
                            Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                              Function * has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  "*": [ function( prop, value ) {
                                    var tween = this.createTween( prop, value ),
                                      target = tween.cur(),
                                      parts = rfxnum.exec( value ),
                                      unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                              Severity: Minor
                              Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                                Function off has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  off: function( types, selector, fn ) {
                                    var handleObj, type;
                                    if ( types && types.preventDefault && types.handleObj ) {
                                      // ( event )  dispatched jQuery.Event
                                      handleObj = types.handleObj;
                                Severity: Minor
                                Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                                  Function offset has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    offset: function( options ) {
                                      if ( arguments.length ) {
                                        return options === undefined ?
                                          this :
                                          this.each(function( i ) {
                                  Severity: Minor
                                  Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                                    Function flushSchedulerQueue has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function flushSchedulerQueue () {
                                      flushing = true;
                                    
                                      // Sort queue before flush.
                                      // This ensures that:
                                    Severity: Minor
                                    Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                      Function genElement has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function genElement (el) {
                                        if (el.staticRoot && !el.staticProcessed) {
                                          // hoist static sub-trees out
                                          el.staticProcessed = true;
                                          staticRenderFns.push(("with(this){return " + (genElement(el)) + "}"));
                                      Severity: Minor
                                      Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                        Function genHandler has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function genHandler (
                                          handler
                                        ) {
                                          if (!handler) {
                                            return 'function(){}'
                                        Severity: Minor
                                        Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language