FanaHOVA/blazer

View on GitHub

Showing 544 of 841 total issues

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

    createItem: function(input, triggerDropdown) {
      var self  = this;
      var caret = self.caretPos;
      input = input || $.trim(self.$control_input.val() || '');

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

    Function clone has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      clone: function( elem, dataAndEvents, deepDataAndEvents ) {
        var destElements, node, clone, i, srcElements,
          inPage = jQuery.contains( elem.ownerDocument, elem );
    
        if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
    Severity: Minor
    Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

      Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
        var i = 0,
          length = elems.length,
          bulk = key == null;
      
      
      Severity: Minor
      Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

        Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          dispatch: function( event ) {
        
            // Make a writable jQuery.Event from the native event object
            event = jQuery.event.fix( event );
        
        
        Severity: Minor
        Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

          Function showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function showHide( elements, show ) {
            var display, elem, hidden,
              values = [],
              index = 0,
              length = elements.length;
          Severity: Minor
          Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

            Function 14 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{}],14:[function(require,module,exports){
            'use strict';
            
            module.exports = function(Chart) {
            
            
            Severity: Minor
            Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

              Function drawBody has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      drawBody: function(pt, vm, ctx, opacity) {
                          var bodyFontSize = vm.bodyFontSize;
                          var bodySpacing = vm.bodySpacing;
                          var body = vm.body;
              
              
              Severity: Minor
              Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

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

                        update: function(reset) {
                            var me = this;
                            var meta = me.getMeta();
                            var line = meta.dataset;
                            var points = meta.data;
                Severity: Minor
                Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

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

                          handleEvent: function(e) {
                              var me = this;
                              var opts = me.options;
                              var type = e.type === 'mouseup' ? 'click' : e.type;
                              var changed = false;
                  Severity: Minor
                  Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                    Function cleanData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      cleanData: function( elems, /* internal */ acceptData ) {
                        var elem, type, id, data,
                          i = 0,
                          internalKey = jQuery.expando,
                          cache = jQuery.cache,
                    Severity: Minor
                    Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                      Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        setOffset: function( elem, options, i ) {
                          var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                            position = jQuery.css( elem, "position" ),
                            curElem = jQuery( elem ),
                            props = {};
                      Severity: Minor
                      Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                        Function style has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          style: function( elem, name, value, extra ) {
                            // Don't set styles on text and comment nodes
                            if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                              return;
                            }
                        Severity: Minor
                        Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                          Function makeList has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function makeList(field) {
                                  var count, setter;
                          
                                  if (field.indexOf('week') === 0) {
                                      count = 7;
                          Severity: Minor
                          Found in app/assets/javascripts/blazer/moment.js - About 1 hr to fix

                            Function timeChanged has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    timeChanged: function(e) {
                            
                                        var cal = $(e.target).closest('.calendar'),
                                            isLeft = cal.hasClass('left');
                            
                            
                            Severity: Minor
                            Found in app/assets/javascripts/blazer/daterangepicker.js - About 1 hr to fix

                              Function getBaseModel has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function getBaseModel(tooltipOpts) {
                                      var globalDefaults = Chart.defaults.global;
                                      var getValueOrDefault = helpers.getValueOrDefault;
                              
                                      return {
                              Severity: Minor
                              Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                            } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
                                              diff = cache[1];
                                
                                            // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
                                            } else {
                                Severity: Critical
                                Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                        if ( start && start[ 3 ] !== unit ) {
                                          // Trust units reported by jQuery.css
                                          unit = unit || start[ 3 ];
                                  
                                          // Make sure we update the tween properties later on
                                  Severity: Critical
                                  Found in app/assets/javascripts/blazer/jquery.js - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if (dsMeta.bar && this.chart.isDatasetVisible(j) &&
                                                        (yScale.options.stacked === false ||
                                                        (yScale.options.stacked === true && stacks.indexOf(dsMeta.stack) === -1) ||
                                                        (yScale.options.stacked === undefined && (dsMeta.stack === undefined || stacks.indexOf(dsMeta.stack) === -1)))) {
                                                        stacks.push(dsMeta.stack);
                                    Severity: Critical
                                    Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                      if (dsMeta.bar && this.chart.isDatasetVisible(j) &&
                                                          (xScale.options.stacked === false ||
                                                          (xScale.options.stacked === true && stacks.indexOf(dsMeta.stack) === -1) ||
                                                          (xScale.options.stacked === undefined && (dsMeta.stack === undefined || stacks.indexOf(dsMeta.stack) === -1)))) {
                                                          stacks.push(dsMeta.stack);
                                      Severity: Critical
                                      Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                        if (dsMeta.bar && me.chart.isDatasetVisible(datasetIndex) &&
                                                            (xScale.options.stacked === false ||
                                                            (xScale.options.stacked === true && stacks.indexOf(dsMeta.stack) === -1) ||
                                                            (xScale.options.stacked === undefined && (dsMeta.stack === undefined || stacks.indexOf(dsMeta.stack) === -1)))) {
                                                            stacks.push(dsMeta.stack);
                                        Severity: Critical
                                        Found in app/assets/javascripts/blazer/Chart.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language