capistrano/capistrano

View on GitHub

Showing 57 of 114 total issues

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/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/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/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/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/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/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/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/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/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/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/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/js/foundation/foundation.dropdown.js - About 1 hr to fix

                          Function refresh_custom_select has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              refresh_custom_select: function ($select, force_refresh) {
                                var self = this;
                                var maxWidth = 0,
                                    $customSelect = $select.next(),
                                    $options = $select.find('option'),
                          Severity: Minor
                          Found in docs/js/foundation/foundation.forms.js - About 1 hr to fix

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

                                events : function () {
                                  var self = this;
                            
                                  $(this.scope)
                                    .on('click.fndtn.clearing', 'ul[data-clearing] li',
                            Severity: Minor
                            Found in docs/js/foundation/foundation.clearing.js - About 1 hr to fix

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

                                  hide : function (el, css) {
                                    // is modal
                                    if (css) {
                                      if (/pop/i.test(this.settings.animation)) {
                                        var end_css = {
                              Severity: Minor
                              Found in docs/js/foundation/foundation.reveal.js - About 1 hr to fix

                                Function cookie has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    var config = $.cookie = function (key, value, options) {
                                
                                        // Write
                                
                                        if (arguments.length > 1 && !$.isFunction(value)) {
                                Severity: Minor
                                Found in docs/js/jquery.cookie.js - About 1 hr to fix

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

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

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

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

                                      Function pos_phone has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          pos_phone : function (init) {
                                            var tip_height = this.outerHeight(this.settings.$next_tip),
                                                tip_offset = this.settings.$next_tip.offset(),
                                                target_height = this.outerHeight(this.settings.$target),
                                                $nub = $('.joyride-nub', this.settings.$next_tip),
                                      Severity: Minor
                                      Found in docs/js/foundation/foundation.joyride.js - About 1 hr to fix

                                        Function cookie has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          var config = $.cookie = function (key, value, options) {
                                        
                                            // write
                                            if (value !== undefined) {
                                              options = $.extend({}, config.defaults, options);
                                        Severity: Minor
                                        Found in docs/js/foundation/foundation.cookie.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source