FanaHOVA/blazer

View on GitHub

Showing 544 of 841 total issues

Function buildLabelDiffs has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        buildLabelDiffs: function() {
            var me = this;
            me.labelDiffs = [];
            var scaleLabelDiffs = [];
            // Parse common labels once
Severity: Minor
Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

    Function hoverDate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            hoverDate: function(e) {
    
                //ignore mouse movements while an above-calendar text input has focus
                if (this.container.find('input[name=daterangepicker_start]').is(":focus") || this.container.find('input[name=daterangepicker_end]').is(":focus"))
                    return;
    Severity: Minor
    Found in app/assets/javascripts/blazer/daterangepicker.js - About 1 hr to fix

      Function update has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              update: function(maxWidth, maxHeight, margins) {
                  var me = this;
      
                  // Update Lifecycle - Probably don't want to ever extend or overwrite this function ;)
                  me.beforeUpdate();
      Severity: Minor
      Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

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

                draw: function(chartArea) {
                    var vm = this._view;
                    var model = this._model;
                    var ctx = this._chart.ctx;
                    var pointStyle = vm.pointStyle;
        Severity: Minor
        Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

          Function addDownloadButton has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function addDownloadButton(chart) {
              var element = chart.element;
              var link = document.createElement("a");
              link.download = chart.options.download === true ? "chart.png" : chart.options.download; // http://caniuse.com/download
              link.style.position = "absolute";
          Severity: Minor
          Found in app/assets/javascripts/blazer/chartkick.js - About 1 hr to fix

            Function descriptors has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    descriptors: function(chart) {
                        var cache = chart._plugins || (chart._plugins = {});
                        if (cache.id === this._cacheId) {
                            return cache.descriptors;
                        }
            Severity: Minor
            Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

              Function applyPlacement has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                Tooltip.prototype.applyPlacement = function (offset, placement) {
                  var $tip   = this.tip()
                  var width  = $tip[0].offsetWidth
                  var height = $tip[0].offsetHeight
              
              
              Severity: Minor
              Found in app/assets/javascripts/blazer/bootstrap.js - About 1 hr to fix

                Function utcOffset has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        utcOffset : function (input, keepLocalTime) {
                            var offset = this._offset || 0,
                                localAdjust;
                            if (input != null) {
                                if (typeof input === 'string') {
                Severity: Minor
                Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                  Method run_check has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    def self.run_check(check)
                      rows = nil
                      error = nil
                      tries = 1
                  
                  
                  Severity: Minor
                  Found in lib/blazer.rb - About 1 hr to fix

                    Function makeDateFromStringAndArray has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function makeDateFromStringAndArray(config) {
                            var tempConfig,
                                bestMoment,
                    
                                scoreToBeat,
                    Severity: Minor
                    Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                      Function attr has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        attr: function( elem, name, value ) {
                          var hooks, ret,
                            nType = elem.nodeType;
                      
                          // don't get/set attributes on text, comment and attribute nodes
                      Severity: Minor
                      Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                        Function promise has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        jQuery.ready.promise = function( obj ) {
                          if ( !readyList ) {
                        
                            readyList = jQuery.Deferred();
                        
                        
                        Severity: Minor
                        Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                          Function handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            handlers: function( event, handlers ) {
                              var sel, handleObj, matches, i,
                                handlerQueue = [],
                                delegateCount = handlers.delegateCount,
                                cur = event.target;
                          Severity: Minor
                          Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                            Function _prepareDragStart has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _prepareDragStart: function (/** Event */evt, /** Touch */touch, /** HTMLElement */target) {
                                  var _this = this,
                                    el = _this.el,
                                    options = _this.options,
                                    ownerDocument = el.ownerDocument,
                            Severity: Minor
                            Found in app/assets/javascripts/blazer/Sortable.js - About 1 hr to fix

                              Function inserted has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                inserted: function inserted (el, binding, vnode) {
                                  {
                                    if (!modelableTagRE.test(vnode.tag)) {
                                      warn(
                                        "v-model is not supported on element type: <" + (vnode.tag) + ">. " +
                              Severity: Minor
                              Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                Function updateDOMProps has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function updateDOMProps (oldVnode, vnode) {
                                  if (!oldVnode.data.domProps && !vnode.data.domProps) {
                                    return
                                  }
                                  var key, cur;
                                Severity: Minor
                                Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                  Function _mount has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    Vue.prototype._mount = function (
                                      el,
                                      hydrating
                                    ) {
                                      var vm = this;
                                  Severity: Minor
                                  Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                    Function _createElement has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function _createElement (
                                      context,
                                      tag,
                                      data,
                                      children
                                    Severity: Minor
                                    Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                      Function setSelected has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function setSelected (el, binding, vm) {
                                        var value = binding.value;
                                        var isMultiple = el.multiple;
                                        if (isMultiple && !Array.isArray(value)) {
                                          "development" !== 'production' && warn(
                                      Severity: Minor
                                      Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix

                                        Function resolveAsyncComponent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function resolveAsyncComponent (
                                          factory,
                                          cb
                                        ) {
                                          if (factory.requested) {
                                        Severity: Minor
                                        Found in app/assets/javascripts/blazer/vue.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language