jasonrobertfox/tictactoe

View on GitHub

Showing 58 of 126 total issues

File foundation.joyride.js has 657 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 lib/assets/javascripts/foundation/foundation.joyride.js - About 1 day to fix

    Function Orbit has 228 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var Orbit = function(el, settings) {
        // Don't reinitialize plugin
        if (el.hasClass(settings.slides_container_class)) {
          return this;
        }
    Severity: Major
    Found in lib/assets/javascripts/foundation/foundation.orbit.js - About 1 day to fix

      Function events has 147 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 lib/assets/javascripts/foundation/foundation.forms.js - About 5 hrs to fix

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

        (function ($, window, document, undefined) {
          'use strict';
        
          Foundation.libs.forms = {
            name : 'forms',
        Severity: Minor
        Found in lib/assets/javascripts/foundation/foundation.forms.js - About 5 hrs 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 lib/assets/javascripts/foundation/foundation.clearing.js - About 5 hrs to fix

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

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

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

                  events : function () {
                    var self = this;
                    $(this.scope)
                      .off('.fndtn.topbar')
                      .on('click.fndtn.topbar', '.top-bar .toggle-topbar, [data-topbar] .toggle-topbar', function (e) {
              Severity: Major
              Found in lib/assets/javascripts/foundation/foundation.topbar.js - About 4 hrs to fix

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

                    resize: function(sections, ensure_has_active_region) {
                
                      var self = Foundation.libs.section,
                          section_container = $(self.settings.section_selector),
                          is_small_window = self.small(section_container),
                Severity: Major
                Found in lib/assets/javascripts/foundation/foundation.section.js - About 4 hrs to fix

                  File foundation.js has 337 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 lib/assets/javascripts/foundation/foundation.js - About 4 hrs to fix

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

                    /*jslint unparam: true, browser: true, indent: 2 */
                    
                    ;
                    (function($, window, document) {
                      'use strict';
                    Severity: Minor
                    Found in lib/assets/javascripts/foundation/foundation.section.js - About 3 hrs to fix

                      File foundation.topbar.js has 292 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 lib/assets/javascripts/foundation/foundation.topbar.js - About 3 hrs to fix

                        File foundation.reveal.js has 285 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 lib/assets/javascripts/foundation/foundation.reveal.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 lib/assets/javascripts/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 lib/assets/javascripts/foundation/foundation.magellan.js - About 2 hrs to fix

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

                              /* 
                               * The MIT License
                               *
                               * Copyright (c) 2012 James Allardice
                               *
                              Severity: Minor
                              Found in lib/assets/javascripts/foundation/foundation.placeholder.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 lib/assets/javascripts/foundation/foundation.forms.js - About 2 hrs to fix

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

                                      self.init = function() {
                                        self.build_markup();
                                        if (settings.timer) {timer = self.create_timer(); timer.start();}
                                        animate = new FadeAnimation(settings, slides_container);
                                        if (settings.animation === 'slide') 
                                  Severity: Major
                                  Found in lib/assets/javascripts/foundation/foundation.orbit.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 lib/assets/javascripts/foundation/foundation.joyride.js - About 2 hrs to fix

                                      Class GameState has 21 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

                                        class GameState
                                          DIAGONAL_ID = 'd'
                                          REVERSE_DIAGONAL_ID = 'rd'
                                          COLUMN_PREFIX = 'c'
                                          ROW_PREFIX = 'r'
                                      Severity: Minor
                                      Found in lib/tictactoe/game_state.rb - About 2 hrs to fix

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

                                            events : function () {
                                              var self = this;
                                        
                                              $(this.scope)
                                                .off('.fndtn.reveal')
                                        Severity: Major
                                        Found in lib/assets/javascripts/foundation/foundation.reveal.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language