capistrano/capistrano

View on GitHub

Showing 58 of 115 total issues

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/assets/js/foundation/foundation.joyride.js - About 1 day to fix

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

    /*jslint unparam: true, browser: true, indent: 2 */
    
    ;(function ($, window, document, undefined) {
      'use strict';
    
    
    Severity: Minor
    Found in docs/assets/js/foundation/foundation.clearing.js - About 5 hrs 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/assets/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/assets/js/foundation/foundation.topbar.js - About 5 hrs to fix

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

          (function ($, window, document, undefined) {
            'use strict';
          
            Foundation.libs.forms = {
              name: 'forms',
          Severity: Minor
          Found in docs/assets/js/foundation/foundation.forms.js - About 5 hrs to fix

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

            /*jslint unparam: true, browser: true, indent: 2 */
            
            ;(function ($, window, document, undefined) {
              'use strict';
            
            
            Severity: Minor
            Found in docs/assets/js/foundation/foundation.section.js - About 4 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/assets/js/foundation/foundation.orbit.js - About 4 hrs to fix

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

                ;(function ($, window, document, undefined) {
                  'use strict';
                
                  Foundation.libs = Foundation.libs || {};
                
                
                Severity: Minor
                Found in docs/assets/js/foundation/foundation.orbit.js - About 4 hrs to fix

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

                  /*
                   * Foundation Responsive Library
                   * http://foundation.zurb.com
                   * Copyright 2013, ZURB
                   * Free to use under the MIT license.
                  Severity: Minor
                  Found in docs/assets/js/foundation/foundation.js - About 3 hrs to fix

                    Class Configuration has 29 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                      class Configuration
                        def self.env
                          @env ||= new
                        end
                    
                    
                    Severity: Minor
                    Found in lib/capistrano/configuration.rb - About 3 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/assets/js/foundation/foundation.magellan.js - About 2 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/assets/js/foundation/foundation.joyride.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/assets/js/foundation/foundation.forms.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/assets/js/foundation/foundation.section.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/assets/js/foundation/foundation.section.js - About 2 hrs to fix

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

                                /*jslint unparam: true, browser: true, indent: 2 */
                                
                                ;(function ($, window, document, undefined) {
                                  'use strict';
                                
                                
                                Severity: Minor
                                Found in docs/assets/js/foundation/foundation.reveal.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/assets/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/assets/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/assets/js/foundation/foundation.joyride.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 docs/assets/js/foundation/foundation.joyride.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language