capistrano/capistrano

View on GitHub

Showing 41 of 115 total issues

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

    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

        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

              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 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

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

                      events : function () {
                        var self = this;
                  
                        $(this.scope)
                          .off('.fndtn.reveal')
                  Severity: Minor
                  Found in docs/assets/js/foundation/foundation.reveal.js - About 1 hr to fix

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

                        resize : function () {
                          var self = Foundation.libs.section,
                              sections = $(self.settings.section_selector);
                    
                          sections.each(function() {
                    Severity: Minor
                    Found in docs/assets/js/foundation/foundation.section.js - About 1 hr to fix

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

                          open : function (target, ajax_settings) {
                            if (target) {
                              if (typeof target.selector !== 'undefined') {
                                var modal = $('#' + target.data('reveal-id'));
                              } else {
                      Severity: Minor
                      Found in docs/assets/js/foundation/foundation.reveal.js - About 1 hr to fix

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

                            init : function (scope, method, options) {
                              Foundation.inherit(this, 'data_options');
                              var self = this;
                        
                              if (typeof method === 'object') {
                        Severity: Minor
                        Found in docs/assets/js/foundation/foundation.tooltips.js - About 1 hr to fix

                          Function reposition has 39 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 docs/assets/js/foundation/foundation.tooltips.js - About 1 hr to fix

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

                                events : function () {
                                  var self = this;
                            
                                  $(this.scope)
                                    .on('click.joyride', '.joyride-next-tip, .joyride-modal-bg', function (e) {
                            Severity: Minor
                            Found in docs/assets/js/foundation/foundation.joyride.js - About 1 hr to fix

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

                                  swipe_events : function () {
                                    var self = this;
                              
                                    $(this.scope)
                                      .on('touchstart.fndtn.clearing', '.visible-img', function(e) {
                              Severity: Minor
                              Found in docs/assets/js/foundation/foundation.clearing.js - About 1 hr to fix

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

                                    start : function () {
                                      var self = this,
                                          $this = $(this.scope).find('[data-joyride]'),
                                          integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'],
                                          int_settings_count = integer_settings.length;
                                Severity: Minor
                                Found in docs/assets/js/foundation/foundation.joyride.js - About 1 hr to fix

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

                                      show : function (el, css) {
                                        // is modal
                                        if (css) {
                                          if (/pop/i.test(this.settings.animation)) {
                                            css.top = $(window).scrollTop() - el.data('offset') + 'px';
                                  Severity: Minor
                                  Found in docs/assets/js/foundation/foundation.reveal.js - About 1 hr to fix

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

                                        css : function (dropdown, target) {
                                          var offset_parent = dropdown.offsetParent();
                                          // temporary workaround until 4.2
                                          if (offset_parent.length > 0 && /body/i.test(dropdown.offsetParent()[0].nodeName)) {
                                            var position = target.offset();
                                    Severity: Minor
                                    Found in docs/assets/js/foundation/foundation.dropdown.js - About 1 hr to fix

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

                                          function setPlaceholder() {
                                              var $replacement,
                                                  input = this,
                                                  $input = $(input),
                                                  $origInput = $input,
                                      Severity: Minor
                                      Found in docs/assets/js/foundation/foundation.placeholder.js - About 1 hr to fix

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

                                            events : function () {
                                              var self = this;
                                        
                                              $(this.scope)
                                                .on('click.fndtn.dropdown', '[data-dropdown]', function (e) {
                                        Severity: Minor
                                        Found in docs/assets/js/foundation/foundation.dropdown.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language