jasonrobertfox/tictactoe

View on GitHub

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

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                  if (!self.rtl) {
                    section.css({left: -(100 * topbar.data('index')) + '%'});
                    section.find('>.name').css({left: 100 * topbar.data('index') + '%'});
                  } else {
                    section.css({right: -(100 * topbar.data('index')) + '%'});
      Severity: Major
      Found in lib/assets/javascripts/foundation/foundation.topbar.js and 1 other location - About 6 hrs to fix
      lib/assets/javascripts/foundation/foundation.topbar.js on lines 267..273

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 169.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

              if (!self.rtl) {
                section.css({left: -(100 * topbar.data('index')) + '%'});
                section.find('>.name').css({left: 100 * topbar.data('index') + '%'});
              } else {
                section.css({right: -(100 * topbar.data('index')) + '%'});
      Severity: Major
      Found in lib/assets/javascripts/foundation/foundation.topbar.js and 1 other location - About 6 hrs to fix
      lib/assets/javascripts/foundation/foundation.topbar.js on lines 196..202

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 169.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      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

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

              init : function (scope, method, options) {
                this.scope = scope || this.scope;
                Foundation.inherit(this, 'throttle scrollLeft data_options');
          
                if (typeof method === 'object') {
          Severity: Major
          Found in lib/assets/javascripts/foundation/foundation.dropdown.js and 1 other location - About 5 hrs to fix
          lib/assets/javascripts/foundation/foundation.alerts.js on lines 17..32

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 145.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

              init : function (scope, method, options) {
                this.scope = scope || this.scope;
                Foundation.inherit(this, 'data_options');
          
                if (typeof method === 'object') {
          Severity: Major
          Found in lib/assets/javascripts/foundation/foundation.alerts.js and 1 other location - About 5 hrs to fix
          lib/assets/javascripts/foundation/foundation.dropdown.js on lines 18..36

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 145.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          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

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                            if (e.which === 38) {
                              var current = dropdown.find('li.selected'),
                                  prev = current.prev(':not(.disabled)');
                  
                              if (prev.length > 0) {
                  Severity: Major
                  Found in lib/assets/javascripts/foundation/foundation.forms.js and 1 other location - About 4 hrs to fix
                  lib/assets/javascripts/foundation/foundation.forms.js on lines 212..221

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 117.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                            } else if (e.which === 40) {
                              var current = dropdown.find('li.selected'),
                                  next = current.next(':not(.disabled)');
                  
                              if (next.length > 0) {
                  Severity: Major
                  Found in lib/assets/javascripts/foundation/foundation.forms.js and 1 other location - About 4 hrs to fix
                  lib/assets/javascripts/foundation/foundation.forms.js on lines 203..221

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 117.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  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

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                              return this.delay(function () {
                                return el
                                  .animate(end_css, this.settings.animationSpeed, 'linear', function () {
                                    this.locked = false;
                                    el.css(css).trigger('closed');
                    Severity: Major
                    Found in lib/assets/javascripts/foundation/foundation.reveal.js and 1 other location - About 3 hrs to fix
                    lib/assets/javascripts/foundation/foundation.reveal.js on lines 277..284

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 110.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                              return this.delay(function () {
                                return el
                                  .css(css)
                                  .animate(end_css, this.settings.animationSpeed, 'linear', function () {
                                    this.locked = false;
                    Severity: Major
                    Found in lib/assets/javascripts/foundation/foundation.reveal.js and 1 other location - About 3 hrs to fix
                    lib/assets/javascripts/foundation/foundation.reveal.js on lines 246..254

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 110.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                          function bindLoad () {
                            this.one('load', loaded);
                    
                            if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
                              var src = this.attr( 'src' ),
                    Severity: Major
                    Found in lib/assets/javascripts/foundation/foundation.interchange.js and 1 other location - About 3 hrs to fix
                    lib/assets/javascripts/foundation/foundation.clearing.js on lines 346..356

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 110.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                              return this.delay(function () {
                                return el
                                  .css(css)
                                  .animate(end_css, this.settings.animationSpeed, 'linear', function () {
                                    this.locked = false;
                    Severity: Major
                    Found in lib/assets/javascripts/foundation/foundation.reveal.js and 1 other location - About 3 hrs to fix
                    lib/assets/javascripts/foundation/foundation.reveal.js on lines 232..240

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 110.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                          function bindLoad () {
                            this.one('load', loaded);
                    
                            if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
                              var src = this.attr( 'src' ),
                    Severity: Major
                    Found in lib/assets/javascripts/foundation/foundation.clearing.js and 1 other location - About 3 hrs to fix
                    lib/assets/javascripts/foundation/foundation.interchange.js on lines 162..172

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 110.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Severity
                    Category
                    Status
                    Source
                    Language