capistrano/capistrano

View on GitHub

File foundation.joyride.js has 652 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*jslint unparam: true, browser: true, indent: 2 */

(function ($, window, document, undefined) {
  'use strict';

Severity: Major
Found in docs/js/foundation/foundation.joyride.js - About 1 day to fix

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

        events: function () {
          var self = this;
    
          $(this.scope)
            .on('click.fndtn.forms', 'form.custom span.custom.checkbox', function (e) {
    Severity: Major
    Found in docs/js/foundation/foundation.forms.js - About 5 hrs to fix

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

          events : function () {
            var self = this;
            var offst = this.outerHeight($('.top-bar, [data-topbar]'));
            $(this.scope)
              .off('.fndtn.topbar')
      Severity: Major
      Found in docs/js/foundation/foundation.topbar.js - About 5 hrs to fix

        Function _init_events has 100 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _init_events: function ($slides_container) {
              var self = this,
                  $container = $slides_container.parent();
        
              $(window)
        Severity: Major
        Found in docs/js/foundation/foundation.orbit.js - About 4 hrs to fix

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

              show : function (init) {
                var $timer = null;
          
                // are we paused?
                if (this.settings.$li === undefined
          Severity: Major
          Found in docs/js/foundation/foundation.joyride.js - About 2 hrs to fix

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

                events : function () {
                  var self = this;
                  $(this.scope).on('arrival.fndtn.magellan', '[data-magellan-arrival]', function (e) {
                    var $destination = $(this),
                        $expedition = $destination.closest('[data-magellan-expedition]'),
            Severity: Major
            Found in docs/js/foundation/foundation.magellan.js - About 2 hrs to fix

              Function append_custom_select has 62 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  append_custom_select: function (idx, sel) {
                      var self = Foundation.libs.forms,
                          $this = $(sel),
                          $customSelect = $this.next('div.custom.dropdown'),
                          $customList = $customSelect.find('ul'),
              Severity: Major
              Found in docs/js/foundation/foundation.forms.js - About 2 hrs to fix

                Function toggle_active has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    toggle_active : function (e, self) {
                      var $this = $(this),
                          self = Foundation.libs.section,
                          region = $this.closest(self.settings.region_selector),
                          content = $this.siblings(self.settings.content_selector),
                Severity: Major
                Found in docs/js/foundation/foundation.section.js - About 2 hrs to fix

                  Function position_content has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      position_content : function (section, off) {
                        var self = this,
                            regions = section.children(self.settings.region_selector),
                            titles = regions
                              .map(function () {
                  Severity: Major
                  Found in docs/js/foundation/foundation.section.js - About 2 hrs to fix

                    Function pos_default has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        pos_default : function (init, resizing) {
                          var half_fold = Math.ceil($(window).height() / 2),
                              tip_position = this.settings.$next_tip.offset(),
                              $nub = this.settings.$next_tip.find('.joyride-nub'),
                              nub_width = Math.ceil(this.outerWidth($nub) / 2),
                    Severity: Major
                    Found in docs/js/foundation/foundation.joyride.js - About 2 hrs to fix

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

                          _goto: function($slides_container, index_or_direction, callback) {
                            var self = this,
                                $container = $slides_container.parent(),
                                $slides = $slides_container.children(),
                                $active_slide = $slides_container.find('.' + self.settings.active_slide_class),
                      Severity: Major
                      Found in docs/js/foundation/foundation.orbit.js - About 2 hrs to fix

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

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

                          Avoid deeply nested control flow statements.
                          Open

                                          if ($customRadio.length === 0) {
                                            $customRadio = $associatedElement.add(this).siblings('span.custom.radio').first();
                                          }
                          Severity: Major
                          Found in docs/js/foundation/foundation.forms.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                        if (this.settings.timer > 0) {
                            
                                          this.settings.$next_tip
                                            .fadeIn(this.settings.tipAnimationFadeSpeed)
                                            .show();
                            Severity: Major
                            Found in docs/js/foundation/foundation.joyride.js - About 45 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return el.show();
                              Severity: Major
                              Found in docs/js/foundation/foundation.reveal.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return el.hide();
                                Severity: Major
                                Found in docs/js/foundation/foundation.reveal.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return $(this.scope).width() < settings.small_breakpoint;
                                  Severity: Major
                                  Found in docs/js/foundation/foundation.section.js - About 30 mins to fix
                                    Severity
                                    Category
                                    Status