nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

Function makeTicksList has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function makeTicksList() {
        tickList = [];

        // Estimate max exponent and min exponent
        var maxDataLog = fixAccurate(mathLog(absMax) / lnBase);
Severity: Major
Found in static/js/dncp/util/smartLogSteps.js - About 2 hrs to fix

    Function bodyCSS has 67 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              bodyCSS: function() {
                var
                  width     = $module.outerWidth(),
                  height    = $module.outerHeight(),
                  direction = module.get.direction(),
    Severity: Major
    Found in static/components/sidebar.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                    if($scope.data.ubicaciones && typeof (obtenerUbicacion) == 'function'){
                        var ubicaciones = $scope.data.ubicaciones;
                        $scope.rDepartamentos = ubicaciones
                            .filter(function(obj){return !!obj[0] && !obj[1] && !obj[2]})
                            .map(function(obj){return obtenerUbicacion(obj, true, true);});
      Severity: Critical
      Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

        Function urlData has 66 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  urlData: function(url, urlData) {
                    var
                      requiredVariables,
                      optionalVariables
                    ;
        Severity: Major
        Found in static/components/api.js - About 2 hrs to fix

          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/sidebar.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/shape.js on lines 601..612
          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

          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/transition.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/shape.js on lines 601..612
          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/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

          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/state.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/shape.js on lines 601..612
          static/components/sidebar.js on lines 821..832
          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

          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

          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/video.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/shape.js on lines 601..612
          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

          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

          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/dimmer.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/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/shape.js on lines 601..612
          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

          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/modal.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/nag.js on lines 244..255
          static/components/progress.js on lines 532..543
          static/components/rating.js on lines 219..230
          static/components/shape.js on lines 601..612
          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

          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/tab.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/shape.js on lines 601..612
          static/components/sidebar.js on lines 821..832
          static/components/state.js on lines 406..417
          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

          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/checkbox.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/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/shape.js on lines 601..612
          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

          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/rating.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/shape.js on lines 601..612
          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

          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/dropdown.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/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/shape.js on lines 601..612
          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

          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/progress.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/rating.js on lines 219..230
          static/components/shape.js on lines 601..612
          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

          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/accordion.js and 14 other locations - About 2 hrs to fix
          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/shape.js on lines 601..612
          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

          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/api.js and 14 other locations - About 2 hrs to fix
          static/components/accordion.js on lines 353..364
          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/shape.js on lines 601..612
          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

          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/nag.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/progress.js on lines 532..543
          static/components/rating.js on lines 219..230
          static/components/shape.js on lines 601..612
          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 7 locations. Consider refactoring.
          Open

            var
              $allModules    = $(this),
              moduleSelector = $allModules.selector || '',
          
              time           = new Date().getTime(),
          Severity: Major
          Found in static/components/nag.js and 6 other locations - About 2 hrs to fix
          static/components/checkbox.js on lines 17..28
          static/components/progress.js on lines 17..30
          static/components/rating.js on lines 17..28
          static/components/search.js on lines 17..28
          static/components/sticky.js on lines 17..28
          static/components/visibility.js on lines 17..28

          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

          Severity
          Category
          Status
          Source
          Language