ZuluPro/myblog

View on GitHub

Showing 64 of 163 total issues

Function events has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    events : function (scope) {
      var self = this,
          S = self.S;

      S(this.scope)
Severity: Major
Found in myblog/myapp/static/zinnia/js/foundation/foundation.reveal.js - About 2 hrs to fix

    Function events has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        events : function () {
          var self = this;
    
          $(this.scope)
            .off('.joyride')
    Severity: Major
    Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 2 hrs to fix

      Function expose has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          expose : function () {
            var expose,
                exposeCover,
                el,
                origCSS,
      Severity: Major
      Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 2 hrs to fix

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

            show : function (el, css) {
              // is modal
              if (css) {
                var settings = el.data(this.attr_name(true) + '-init') || this.settings,
                    root_element = settings.root_element;
        Severity: Major
        Found in myblog/myapp/static/zinnia/js/foundation/foundation.reveal.js - About 2 hrs to fix

          Function events has 51 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              events : function (instance) {
                var self = this,
                    S = self.S;
          
                self.create(this.S(instance));
          Severity: Major
          Found in myblog/myapp/static/zinnia/js/foundation/foundation.tooltip.js - About 2 hrs to fix

            Function check_validation_and_apply_styles has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                check_validation_and_apply_styles : function (el_patterns) {
                  var i = el_patterns.length,
                      validations = [],
                      form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'),
                      settings = form.data(this.attr_name(true) + '-init') || {};
            Severity: Major
            Found in myblog/myapp/static/zinnia/js/foundation/foundation.abide.js - About 2 hrs to fix

              Function un_expose has 48 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  un_expose : function () {
                    var exposeId,
                        el,
                        expose ,
                        origCSS,
              Severity: Minor
              Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 1 hr to fix

                Function open has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    open : function ($image, current, target) {
                      var self = this,
                          body = $(document.body),
                          root = target.closest('.clearing-assembled'),
                          container = self.S('div', root).first(),
                Severity: Minor
                Found in myblog/myapp/static/zinnia/js/foundation/foundation.clearing.js - About 1 hr to fix

                  Function reposition has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      reposition : function (target, tip, classes) {
                        var width, nub, nubHeight, nubWidth, column, objPos;
                  
                        tip.css('visibility', 'hidden').show();
                  
                  
                  Severity: Minor
                  Found in myblog/myapp/static/zinnia/js/foundation/foundation.tooltip.js - About 1 hr to fix

                    Function _goto has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        self._goto = function(next_idx, start_timer) {
                          // if (locked) {return false;}
                          if (next_idx === idx) {return false;}
                          if (typeof timer === 'object') {timer.restart();}
                          var slides = self.slides();
                    Severity: Minor
                    Found in myblog/myapp/static/zinnia/js/foundation/foundation.orbit.js - About 1 hr to fix

                      Function Timer has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        var Timer = function(el, settings, callback) {
                          var self = this,
                              duration = settings.timer_speed,
                              progress = el.find('.'+settings.timer_progress_class),
                              start,
                      Severity: Minor
                      Found in myblog/myapp/static/zinnia/js/foundation/foundation.orbit.js - About 1 hr to fix

                        Function events has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            events : function() {
                              var self = this;
                        
                              $(this.scope)
                                .off('.slider')
                        Severity: Minor
                        Found in myblog/myapp/static/zinnia/js/foundation/foundation.slider.js - About 1 hr to fix

                          Function swipe_events has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              swipe_events : function (scope) {
                                var self = this,
                                S = self.S;
                          
                                S(this.scope)
                          Severity: Minor
                          Found in myblog/myapp/static/zinnia/js/foundation/foundation.clearing.js - About 1 hr to fix

                            Function events has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                events : function (scope) {
                                  var self = this,
                                      S = self.S,
                                      $scroll_container = $('.scroll-container');
                            
                            
                            Severity: Minor
                            Found in myblog/myapp/static/zinnia/js/foundation/foundation.clearing.js - About 1 hr to fix

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

                                    data_options : function (el, data_attr_name) {
                                      data_attr_name = data_attr_name || 'options';
                                      var opts = {}, ii, p, opts_arr,
                                          data_options = function (el) {
                                            var namespace = Foundation.global.namespace;
                              Severity: Minor
                              Found in myblog/myapp/static/zinnia/js/foundation/foundation.js - About 1 hr to fix

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

                                    hide : function (el, css) {
                                      // is modal
                                      if (css) {
                                        var settings = el.data(this.attr_name(true) + '-init');
                                        settings = settings || this.settings;
                                Severity: Minor
                                Found in myblog/myapp/static/zinnia/js/foundation/foundation.reveal.js - About 1 hr to fix

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

                                      toggle_active_tab: function (tab, location_hash) {
                                        var S = this.S,
                                            tabs = tab.closest('[' + this.attr_name() + ']'),
                                            anchor = tab.children('a').first(),
                                            target_hash = '#' + anchor.attr('href').split('#')[1],
                                  Severity: Minor
                                  Found in myblog/myapp/static/zinnia/js/foundation/foundation.tab.js - About 1 hr to fix

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

                                        events : function () {
                                          var self = this,
                                              S = self.S,
                                              move_class = '',
                                              right_postfix = '',
                                    Severity: Minor
                                    Found in myblog/myapp/static/zinnia/js/foundation/foundation.offcanvas.js - About 1 hr to fix

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

                                          events : function () {
                                            var self = this;
                                            var S = this.S;
                                            S(this.scope)
                                            .off('.fndtn.accordion')
                                      Severity: Minor
                                      Found in myblog/myapp/static/zinnia/js/foundation/foundation.accordion.js - About 1 hr to fix

                                        Function start has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            start : function () {
                                              var self = this,
                                                  $this = $('[' + this.attr_name() + ']', this.scope),
                                                  integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'],
                                                  int_settings_count = integer_settings.length;
                                        Severity: Minor
                                        Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language