jasonrobertfox/tictactoe

View on GitHub

Showing 126 of 126 total issues

Avoid deeply nested control flow statements.
Open

                        if (!elem.getAttribute(ATTR_EVENTS_BOUND)) {
                            newElement(elem);
                        }
Severity: Major
Found in lib/assets/javascripts/foundation/foundation.placeholder.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if (placeholder !== elem.getAttribute(ATTR_CURRENT_VAL) || (elem.type === "password" && !elem.getAttribute(ATTR_INPUT_TYPE))) {
    
                                // Attempt to change the type of password inputs (fails in IE < 9)
                                if (elem.type === "password" && !elem.getAttribute(ATTR_INPUT_TYPE) && Utils.changeType(elem, "text")) {
                                    elem.setAttribute(ATTR_INPUT_TYPE, "password");
    Severity: Major
    Found in lib/assets/javascripts/foundation/foundation.placeholder.js - About 45 mins to fix

      Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          init : function (scope, libraries, method, options, response, /* internal */ nc) {
      Severity: Minor
      Found in lib/assets/javascripts/foundation/foundation.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                        if ($customRadio.length === 0) {
                          $customRadio = $associatedElement.add(this).siblings('span.custom.radio').first();
                        }
        Severity: Major
        Found in lib/assets/javascripts/foundation/foundation.forms.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      if ($(klass).hasClass('fixed')) {
                        $(klass).removeClass('fixed');
                        $('body').removeClass('f-topbar-fixed');
                      }
          Severity: Major
          Found in lib/assets/javascripts/foundation/foundation.topbar.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                        if (this.settings.timer > 0) {
            
                          this.settings.$next_tip
                            .fadeIn(this.settings.tipAnimationFadeSpeed)
                            .show();
            Severity: Major
            Found in lib/assets/javascripts/foundation/foundation.joyride.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                if (!region.hasClass(self.settings.active_class))
                                  region.addClass(self.settings.active_class);
              Severity: Major
              Found in lib/assets/javascripts/foundation/foundation.section.js - About 45 mins to fix

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

                      if (/fade/i.test(this.settings.animation)) {
                        return el.fadeIn(this.settings.animationSpeed / 2);
                      }
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.reveal.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.reveal.js on lines 304..306

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

                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 (/fade/i.test(this.settings.animation)) {
                        return el.fadeOut(this.settings.animationSpeed / 2);
                      }
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.reveal.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.reveal.js on lines 261..263

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

                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

                            titles.each(function() {
                              titles_max_height = Math.max(titles_max_height, self.outerHeight($(this)));
                            });
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.section.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.section.js on lines 272..274

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

                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 (!settings.deep_linking && (settings.one_up || !self.is_horizontal_nav(section) &&
                              !self.is_vertical_nav(section) && !self.is_accordion(section))) {
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.section.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.section.js on lines 380..381

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

                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

                            titles.each(function() {
                              titles_max_width = Math.max(titles_max_width, self.outerWidth($(this)));
                            });
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.section.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.section.js on lines 230..232

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

                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

                              top: (this.settings.$target.offset().top - this.outerHeight(this.settings.$next_tip) - nub_height),
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.joyride.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.joyride.js on lines 474..474

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

                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

                              left: (this.settings.$target.offset().left - this.outerWidth(this.settings.$next_tip) - nub_width)});
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.joyride.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.joyride.js on lines 457..457

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

                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 (!selected && (settings.one_up || !self.is_horizontal_nav(section) &&
                             !self.is_vertical_nav(section) && !self.is_accordion(section)))
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.section.js and 1 other location - About 40 mins to fix
                lib/assets/javascripts/foundation/foundation.section.js on lines 184..185

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

                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

                      $('form.custom input[type="radio"],[type="checkbox"]', $(this.scope))
                        .not('[data-customforms="disabled"]')
                        .not('.' + this.settings.disable_class)
                        .each(function(idx, sel){
                          forms.set_custom_markup(sel);
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.forms.js and 1 other location - About 35 mins to fix
                lib/assets/javascripts/foundation/foundation.forms.js on lines 49..52

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

                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

                      $('form.custom select', $(this.scope))
                        .not('[data-customforms="disabled"]')
                        .not('.' + this.settings.disable_class)
                        .not('[multiple=multiple]')
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.forms.js and 1 other location - About 35 mins to fix
                lib/assets/javascripts/foundation/foundation.forms.js on lines 39..44

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

                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: '0%'});
                          section.find('>.name').css({left: '100%'});
                        } else {
                Severity: Minor
                Found in lib/assets/javascripts/foundation/foundation.topbar.js and 1 other location - About 30 mins to fix
                lib/assets/javascripts/foundation/foundation.topbar.js on lines 88..91

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

                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

                Avoid too many return statements within this function.
                Open

                      return el.show();
                Severity: Major
                Found in lib/assets/javascripts/foundation/foundation.reveal.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return el.hide();
                  Severity: Major
                  Found in lib/assets/javascripts/foundation/foundation.reveal.js - About 30 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language