nemesiscodex/openfonacide

View on GitHub
static/components/shape.js

Summary

Maintainability
F
3 wks
Test Coverage

Function shape has 703 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.shape = function(parameters) {
  var
    $allModules     = $(this),
    $body           = $('body'),

Severity: Major
Found in static/components/shape.js - About 3 days to fix

    File shape.js has 733 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * # Semantic UI 1.12.3 - Shape
     * http://github.com/semantic-org/semantic-ui/
     *
     *
    Severity: Major
    Found in static/components/shape.js - About 1 day to fix

      Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              invoke: function(query, passedArguments, context) {
                var
                  object = instance,
                  maxDepth,
                  found,
      Severity: Major
      Found in static/components/shape.js - About 2 hrs to fix

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

                animate: function(propertyObject, callback) {
                  module.verbose('Animating box with properties', propertyObject);
                  callback = callback || function(event) {
                    module.verbose('Executing animation callback');
                    if(event !== undefined) {
        Severity: Minor
        Found in static/components/shape.js - About 1 hr to fix

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

                    display: function() {
                      var
                        title = settings.name + ':',
                        totalTime = 0
                      ;
          Severity: Minor
          Found in static/components/shape.js - About 1 hr to fix

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

                    performance: {
                      log: function(message) {
                        var
                          currentTime,
                          executionTime,
            Severity: Major
            Found in static/components/shape.js and 6 other locations - About 2 days to fix
            static/components/dimmer.js on lines 467..520
            static/components/form.js on lines 758..811
            static/components/rating.js on lines 268..321
            static/components/search.js on lines 734..787
            static/components/transition.js on lines 838..891
            static/components/video.js on lines 333..386

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

            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 7 locations. Consider refactoring.
            Open

                    invoke: function(query, passedArguments, context) {
                      var
                        object = instance,
                        maxDepth,
                        found,
            Severity: Major
            Found in static/components/shape.js and 6 other locations - About 2 days to fix
            static/components/form.js on lines 812..864
            static/components/modal.js on lines 727..779
            static/components/popup.js on lines 1011..1063
            static/components/rating.js on lines 322..374
            static/components/search.js on lines 788..840
            static/components/sticky.js on lines 693..745

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

            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 4 locations. Consider refactoring.
            Open

                      below: function() {
                        var
                          box = {
                            origin : (($activeSide.outerHeight() - $nextSide.outerHeight()) / 2),
                            depth  : {
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 7 hrs to fix
            static/components/shape.js on lines 471..495
            static/components/shape.js on lines 523..547
            static/components/shape.js on lines 549..573

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

            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 4 locations. Consider refactoring.
            Open

                      left: function() {
                        var
                          box = {
                            origin : ( ( $activeSide.outerWidth() - $nextSide.outerWidth() ) / 2),
                            depth  : {
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 7 hrs to fix
            static/components/shape.js on lines 471..495
            static/components/shape.js on lines 497..521
            static/components/shape.js on lines 549..573

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

            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 4 locations. Consider refactoring.
            Open

                      right: function() {
                        var
                          box = {
                            origin : ( ( $activeSide.outerWidth() - $nextSide.outerWidth() ) / 2),
                            depth  : {
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 7 hrs to fix
            static/components/shape.js on lines 471..495
            static/components/shape.js on lines 497..521
            static/components/shape.js on lines 523..547

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

            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 4 locations. Consider refactoring.
            Open

                      above: function() {
                        var
                          box = {
                            origin : (($activeSide.outerHeight() - $nextSide.outerHeight()) / 2),
                            depth  : {
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 7 hrs to fix
            static/components/shape.js on lines 497..521
            static/components/shape.js on lines 523..547
            static/components/shape.js on lines 549..573

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

            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 6 locations. Consider refactoring.
            Open

                      left: function() {
                        if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {
                          module.debug('Side already visible', $nextSide);
                          return;
                        }
            Severity: Major
            Found in static/components/shape.js and 5 other locations - About 6 hrs to fix
            static/components/shape.js on lines 270..284
            static/components/shape.js on lines 286..300
            static/components/shape.js on lines 318..332
            static/components/shape.js on lines 334..348
            static/components/shape.js on lines 350..364

            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 6 locations. Consider refactoring.
            Open

                      down: function() {
                        if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {
                          module.debug('Side already visible', $nextSide);
                          return;
                        }
            Severity: Major
            Found in static/components/shape.js and 5 other locations - About 6 hrs to fix
            static/components/shape.js on lines 270..284
            static/components/shape.js on lines 302..316
            static/components/shape.js on lines 318..332
            static/components/shape.js on lines 334..348
            static/components/shape.js on lines 350..364

            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 6 locations. Consider refactoring.
            Open

                      over: function() {
                        if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {
                          module.debug('Side already visible', $nextSide);
                          return;
                        }
            Severity: Major
            Found in static/components/shape.js and 5 other locations - About 6 hrs to fix
            static/components/shape.js on lines 270..284
            static/components/shape.js on lines 286..300
            static/components/shape.js on lines 302..316
            static/components/shape.js on lines 318..332
            static/components/shape.js on lines 350..364

            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 6 locations. Consider refactoring.
            Open

                      right: function() {
                        if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {
                          module.debug('Side already visible', $nextSide);
                          return;
                        }
            Severity: Major
            Found in static/components/shape.js and 5 other locations - About 6 hrs to fix
            static/components/shape.js on lines 270..284
            static/components/shape.js on lines 286..300
            static/components/shape.js on lines 302..316
            static/components/shape.js on lines 334..348
            static/components/shape.js on lines 350..364

            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 6 locations. Consider refactoring.
            Open

                      back: function() {
                        if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {
                          module.debug('Side already visible', $nextSide);
                          return;
                        }
            Severity: Major
            Found in static/components/shape.js and 5 other locations - About 6 hrs to fix
            static/components/shape.js on lines 270..284
            static/components/shape.js on lines 286..300
            static/components/shape.js on lines 302..316
            static/components/shape.js on lines 318..332
            static/components/shape.js on lines 334..348

            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 6 locations. Consider refactoring.
            Open

                      up: function() {
                        if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {
                          module.debug('Side already visible', $nextSide);
                          return;
                        }
            Severity: Major
            Found in static/components/shape.js and 5 other locations - About 6 hrs to fix
            static/components/shape.js on lines 286..300
            static/components/shape.js on lines 302..316
            static/components/shape.js on lines 318..332
            static/components/shape.js on lines 334..348
            static/components/shape.js on lines 350..364

            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

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

                    verbose: function() {
                      if(settings.verbose && settings.debug) {
                        if(settings.performance) {
                          module.performance.log(arguments);
                        }
            Severity: Major
            Found in static/components/shape.js and 20 other locations - About 4 hrs to fix
            static/components/accordion.js on lines 390..400
            static/components/api.js on lines 638..648
            static/components/checkbox.js on lines 329..339
            static/components/dimmer.js on lines 452..462
            static/components/dropdown.js on lines 1540..1550
            static/components/form.js on lines 743..753
            static/components/modal.js on lines 661..671
            static/components/nag.js on lines 278..288
            static/components/popup.js on lines 945..955
            static/components/progress.js on lines 566..576
            static/components/rating.js on lines 253..263
            static/components/search.js on lines 719..729
            static/components/sidebar.js on lines 855..865
            static/components/site.js on lines 288..298
            static/components/state.js on lines 440..450
            static/components/sticky.js on lines 627..637
            static/components/tab.js on lines 594..604
            static/components/transition.js on lines 823..833
            static/components/video.js on lines 318..328
            static/components/visibility.js on lines 878..888

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

            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 21 locations. Consider refactoring.
            Open

                    debug: function() {
                      if(settings.debug) {
                        if(settings.performance) {
                          module.performance.log(arguments);
                        }
            Severity: Major
            Found in static/components/shape.js and 20 other locations - About 3 hrs to fix
            static/components/accordion.js on lines 379..389
            static/components/api.js on lines 627..637
            static/components/checkbox.js on lines 318..328
            static/components/dimmer.js on lines 441..451
            static/components/dropdown.js on lines 1529..1539
            static/components/form.js on lines 732..742
            static/components/modal.js on lines 650..660
            static/components/nag.js on lines 267..277
            static/components/popup.js on lines 934..944
            static/components/progress.js on lines 555..565
            static/components/rating.js on lines 242..252
            static/components/search.js on lines 708..718
            static/components/sidebar.js on lines 844..854
            static/components/site.js on lines 277..287
            static/components/state.js on lines 429..439
            static/components/sticky.js on lines 616..626
            static/components/tab.js on lines 583..593
            static/components/transition.js on lines 812..822
            static/components/video.js on lines 307..317
            static/components/visibility.js on lines 867..877

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

            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 4 locations. Consider refactoring.
            Open

                        down: function() {
                          var
                            translate = {
                              y: -(($activeSide.outerHeight() - $nextSide.outerHeight()) / 2),
                              z: -($activeSide.outerHeight() / 2)
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 3 hrs to fix
            static/components/shape.js on lines 371..381
            static/components/shape.js on lines 395..405
            static/components/shape.js on lines 407..417

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

            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 4 locations. Consider refactoring.
            Open

                        right: function() {
                          var
                            translate = {
                              x : -(($activeSide.outerWidth() - $nextSide.outerWidth()) / 2),
                              z : -($activeSide.outerWidth() / 2)
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 3 hrs to fix
            static/components/shape.js on lines 371..381
            static/components/shape.js on lines 383..393
            static/components/shape.js on lines 395..405

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

            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 4 locations. Consider refactoring.
            Open

                        up: function() {
                          var
                            translate = {
                              y: -(($activeSide.outerHeight() - $nextSide.outerHeight()) / 2),
                              z: -($activeSide.outerHeight() / 2)
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 3 hrs to fix
            static/components/shape.js on lines 383..393
            static/components/shape.js on lines 395..405
            static/components/shape.js on lines 407..417

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

            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 4 locations. Consider refactoring.
            Open

                        left: function() {
                          var
                            translate = {
                              x : -(($activeSide.outerWidth() - $nextSide.outerWidth()) / 2),
                              z : -($activeSide.outerWidth() / 2)
            Severity: Major
            Found in static/components/shape.js and 3 other locations - About 3 hrs to fix
            static/components/shape.js on lines 371..381
            static/components/shape.js on lines 383..393
            static/components/shape.js on lines 407..417

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

            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 3 locations. Consider refactoring.
            Open

                      transitionEvent: function() {
                        var
                          element     = document.createElement('element'),
                          transitions = {
                            'transition'       :'transitionend',
            Severity: Major
            Found in static/components/shape.js and 2 other locations - About 2 hrs to fix
            static/components/progress.js on lines 208..224
            static/components/sidebar.js on lines 717..733

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

            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 15 locations. Consider refactoring.
            Open

                    setting: function(name, value) {
                      module.debug('Changing setting', name, value);
                      if( $.isPlainObject(name) ) {
                        $.extend(true, settings, name);
                      }
            Severity: Major
            Found in static/components/shape.js and 14 other locations - About 2 hrs to fix
            static/components/accordion.js on lines 353..364
            static/components/api.js on lines 604..615
            static/components/checkbox.js on lines 295..306
            static/components/dimmer.js on lines 418..429
            static/components/dropdown.js on lines 1506..1517
            static/components/modal.js on lines 627..638
            static/components/nag.js on lines 244..255
            static/components/progress.js on lines 532..543
            static/components/rating.js on lines 219..230
            static/components/sidebar.js on lines 821..832
            static/components/state.js on lines 406..417
            static/components/tab.js on lines 560..571
            static/components/transition.js on lines 789..800
            static/components/video.js on lines 284..295

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

            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 19 locations. Consider refactoring.
            Open

                  if(methodInvoked) {
                    if(instance === undefined) {
                      module.initialize();
                    }
                    module.invoke(query);
            Severity: Major
            Found in static/components/shape.js and 18 other locations - About 2 hrs to fix
            static/components/accordion.js on lines 511..522
            static/components/api.js on lines 760..771
            static/components/checkbox.js on lines 451..462
            static/components/dimmer.js on lines 579..590
            static/components/dropdown.js on lines 1662..1673
            static/components/form.js on lines 866..877
            static/components/modal.js on lines 782..793
            static/components/nag.js on lines 400..411
            static/components/popup.js on lines 1066..1077
            static/components/progress.js on lines 688..699
            static/components/rating.js on lines 376..387
            static/components/search.js on lines 842..853
            static/components/sidebar.js on lines 978..989
            static/components/state.js on lines 562..573
            static/components/sticky.js on lines 748..759
            static/components/tab.js on lines 715..726
            static/components/video.js on lines 443..454
            static/components/visibility.js on lines 1000..1011

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

            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 26 locations. Consider refactoring.
            Open

                    internal: function(name, value) {
                      if( $.isPlainObject(name) ) {
                        $.extend(true, module, name);
                      }
                      else if(value !== undefined) {
            Severity: Major
            Found in static/components/shape.js and 25 other locations - About 1 hr to fix
            static/components/api.js on lines 616..626
            static/components/checkbox.js on lines 307..317
            static/components/dimmer.js on lines 430..440
            static/components/dropdown.js on lines 1518..1528
            static/components/form.js on lines 710..720
            static/components/form.js on lines 721..731
            static/components/modal.js on lines 639..649
            static/components/nag.js on lines 256..266
            static/components/popup.js on lines 912..922
            static/components/popup.js on lines 923..933
            static/components/progress.js on lines 544..554
            static/components/rating.js on lines 231..241
            static/components/search.js on lines 686..696
            static/components/search.js on lines 697..707
            static/components/sidebar.js on lines 833..843
            static/components/site.js on lines 255..265
            static/components/site.js on lines 266..276
            static/components/state.js on lines 418..428
            static/components/sticky.js on lines 594..604
            static/components/sticky.js on lines 605..615
            static/components/tab.js on lines 572..582
            static/components/transition.js on lines 801..811
            static/components/video.js on lines 296..306
            static/components/visibility.js on lines 845..855
            static/components/visibility.js on lines 856..866

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

            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

                        back: function() {
                          var
                            translate = {
                              x : -(($activeSide.outerWidth() - $nextSide.outerWidth()) / 2)
                            }
            Severity: Major
            Found in static/components/shape.js and 1 other location - About 1 hr to fix
            static/components/shape.js on lines 419..428

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

            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

                        over: function() {
                          var
                            translate = {
                              x : -(($activeSide.outerWidth() - $nextSide.outerWidth()) / 2)
                            }
            Severity: Major
            Found in static/components/shape.js and 1 other location - About 1 hr to fix
            static/components/shape.js on lines 430..439

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

            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 21 locations. Consider refactoring.
            Open

                    error: function() {
                      module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
                      module.error.apply(console, arguments);
                    },
            Severity: Major
            Found in static/components/shape.js and 20 other locations - About 1 hr to fix
            static/components/accordion.js on lines 401..404
            static/components/api.js on lines 649..652
            static/components/checkbox.js on lines 340..343
            static/components/dimmer.js on lines 463..466
            static/components/dropdown.js on lines 1551..1554
            static/components/form.js on lines 754..757
            static/components/modal.js on lines 672..675
            static/components/nag.js on lines 289..292
            static/components/popup.js on lines 956..959
            static/components/progress.js on lines 577..580
            static/components/rating.js on lines 264..267
            static/components/search.js on lines 730..733
            static/components/sidebar.js on lines 866..869
            static/components/site.js on lines 299..302
            static/components/state.js on lines 451..454
            static/components/sticky.js on lines 638..641
            static/components/tab.js on lines 605..608
            static/components/transition.js on lines 834..837
            static/components/video.js on lines 329..332
            static/components/visibility.js on lines 889..892

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

            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 3 locations. Consider refactoring.
            Open

                            : ( $activeSide.next(selector.side).length > 0 )
                              ? $activeSide.next(selector.side)
                              : $clone.find(selector.side).first(),
            Severity: Major
            Found in static/components/shape.js and 2 other locations - About 1 hr to fix
            static/components/shape.js on lines 192..194
            static/components/shape.js on lines 461..463

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

            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 3 locations. Consider refactoring.
            Open

                        return ( $activeSide.next(selector.side).length > 0 )
                          ? $activeSide.next(selector.side)
                          : $module.find(selector.side).first()
            Severity: Major
            Found in static/components/shape.js and 2 other locations - About 1 hr to fix
            static/components/shape.js on lines 192..194
            static/components/shape.js on lines 225..227

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

            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 3 locations. Consider refactoring.
            Open

                        $nextSide   = ( $activeSide.next(selector.side).length > 0 )
                          ? $activeSide.next(selector.side)
                          : $module.find(selector.side).first()
            Severity: Major
            Found in static/components/shape.js and 2 other locations - About 1 hr to fix
            static/components/shape.js on lines 225..227
            static/components/shape.js on lines 461..463

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

            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 9 locations. Consider refactoring.
            Open

                requestAnimationFrame = window.requestAnimationFrame
                  || window.mozRequestAnimationFrame
                  || window.webkitRequestAnimationFrame
                  || window.msRequestAnimationFrame
                  || function(callback) { setTimeout(callback, 0); },
            Severity: Major
            Found in static/components/shape.js and 8 other locations - About 50 mins to fix
            static/components/accordion.js on lines 27..31
            static/components/modal.js on lines 32..36
            static/components/nag.js on lines 67..71
            static/components/sidebar.js on lines 33..37
            static/components/sticky.js on lines 53..57
            static/components/transition.js on lines 29..33
            static/components/video.js on lines 30..34
            static/components/visibility.js on lines 52..56

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

            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

            There are no issues that match your filters.

            Category
            Status