FanaHOVA/blazer

View on GitHub

Showing 544 of 841 total issues

Function createDataTable has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        var createDataTable = function (series, columnType) {
          var i, j, s, d, key, rows = [], sortedLabels = [];
          for (i = 0; i < series.length; i++) {
            s = series[i];

Severity: Minor
Found in app/assets/javascripts/blazer/chartkick.js - About 1 hr to fix

    Function show has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Modal.prototype.show = function (_relatedTarget) {
        var that = this
        var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
    
        this.$element.trigger(e)
    Severity: Minor
    Found in app/assets/javascripts/blazer/bootstrap.js - About 1 hr to fix

      Function backdrop has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Modal.prototype.backdrop = function (callback) {
          var that = this
          var animate = this.$element.hasClass('fade') ? 'fade' : ''
      
          if (this.isShown && this.options.backdrop) {
      Severity: Minor
      Found in app/assets/javascripts/blazer/bootstrap.js - About 1 hr to fix

        Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          each: function( obj, callback, args ) {
            var value,
              i = 0,
              length = obj.length,
              isArray = isArraylike( obj );
        Severity: Minor
        Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

          Function computeStyleTests has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function computeStyleTests() {
              // Minified: var b,c,d,j
              var div, body, container, contents;
          
              body = document.getElementsByTagName( "body" )[ 0 ];
          Severity: Minor
          Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

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

                    draw: function() {
                        var me = this,
                            ctx = me.ctx,
                            valueOrDefault = helpers.getValueOrDefault,
                            opts = me.options,
            Severity: Minor
            Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

              Function updateOption has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  updateOption: function(value, data) {
                    var self = this;
                    var $item, $item_new;
                    var value_new, index_item, cache_items, cache_options, order_old;
              
              
              Severity: Minor
              Found in app/assets/javascripts/blazer/selectize.js - About 1 hr to fix

                Function activate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  Tab.prototype.activate = function (element, container, callback) {
                    var $active    = container.find('> .active')
                    var transition = callback
                      && $.support.transition
                      && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
                Severity: Minor
                Found in app/assets/javascripts/blazer/bootstrap.js - About 1 hr to fix

                  Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function ajaxHandleResponses( s, jqXHR, responses ) {
                    var firstDataType, ct, finalDataType, type,
                      contents = s.contents,
                      dataTypes = s.dataTypes;
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                    Function data has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    strats.data = function (
                      parentVal,
                      childVal,
                      vm
                    ) {
                    Severity: Minor
                    Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                      Function setValues has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Color.prototype.setValues = function (space, vals) {
                          var values = this.values;
                          var spaces = this.spaces;
                          var maxes = this.maxes;
                          var alpha = 1;
                      Severity: Minor
                      Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                        Function handleStartTag has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function handleStartTag (match) {
                            var tagName = match.tagName;
                            var unarySlash = match.unarySlash;
                        
                            if (expectHTML) {
                        Severity: Minor
                        Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

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

                                  updateElement: function(point, index, reset) {
                                      var me = this;
                                      var meta = me.getMeta();
                                      var custom = point.custom || {};
                                      var dataset = me.getDataset();
                          Severity: Minor
                          Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                            Function dateFromConfig has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function dateFromConfig(config) {
                                    var i, date, input = [], currentDate, yearToUse;
                            
                                    if (config._d) {
                                        return;
                            Severity: Minor
                            Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                              Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                when: function( subordinate /* , ..., subordinateN */ ) {
                                  var i = 0,
                                    resolveValues = slice.call( arguments ),
                                    length = resolveValues.length,
                              
                              
                              Severity: Minor
                              Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                                Function getBackgroundPoint has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function getBackgroundPoint(vm, size, alignment) {
                                        // Background Position
                                        var x = vm.x;
                                        var y = vm.y;
                                
                                
                                Severity: Minor
                                Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                  Function transition has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          transition: function(ease) {
                                              var me = this;
                                  
                                              if (!me._view) {
                                                  me._view = helpers.clone(me._model);
                                  Severity: Minor
                                  Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                    Function startDigest has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            startDigest: function() {
                                                var me = this;
                                    
                                                var startTime = Date.now();
                                                var framesToDrop = 0;
                                    Severity: Minor
                                    Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                      Function buildScales has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              buildScales: function() {
                                                  var me = this;
                                                  var options = me.options;
                                                  var scales = me.scales = {};
                                                  var items = [];
                                      Severity: Minor
                                      Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                        Function show has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          Collapse.prototype.show = function () {
                                            if (this.transitioning || this.$element.hasClass('in')) return
                                        
                                            var activesData
                                            var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
                                        Severity: Minor
                                        Found in app/assets/javascripts/blazer/bootstrap.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language