nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in static/components/state.js and 11 other locations - About 2 days to fix
static/components/accordion.js on lines 405..455
static/components/checkbox.js on lines 344..394
static/components/dropdown.js on lines 1555..1605
static/components/modal.js on lines 676..726
static/components/nag.js on lines 293..343
static/components/popup.js on lines 960..1010
static/components/progress.js on lines 581..631
static/components/sidebar.js on lines 870..920
static/components/sticky.js on lines 642..692
static/components/tab.js on lines 609..659
static/components/visibility.js on lines 893..943

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

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

        performance: {
          log: function(message) {
            var
              currentTime,
              executionTime,
Severity: Major
Found in static/components/accordion.js and 11 other locations - About 2 days to fix
static/components/checkbox.js on lines 344..394
static/components/dropdown.js on lines 1555..1605
static/components/modal.js on lines 676..726
static/components/nag.js on lines 293..343
static/components/popup.js on lines 960..1010
static/components/progress.js on lines 581..631
static/components/sidebar.js on lines 870..920
static/components/state.js on lines 455..505
static/components/sticky.js on lines 642..692
static/components/tab.js on lines 609..659
static/components/visibility.js on lines 893..943

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

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

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

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

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

Refactorings

Further Reading

File search.js has 1017 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * # Semantic UI 1.12.3 - Search
 * http://github.com/semantic-org/semantic-ui/
 *
 *
Severity: Major
Found in static/components/search.js - About 2 days to fix

    File form.js has 1004 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * # Semantic UI 1.12.3 - Form Validation
     * http://github.com/semantic-org/semantic-ui/
     *
     *
    Severity: Major
    Found in static/components/form.js - About 2 days to fix

      File sidebar.js has 982 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * # Semantic UI 1.12.3 - Sidebar
       * http://github.com/semantic-org/semantic-ui/
       *
       *
      Severity: Major
      Found in static/components/sidebar.js - About 2 days to fix

        Function accordion has 487 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.fn.accordion = function(parameters) {
          var
            $allModules     = $(this),
        
            time            = new Date().getTime(),
        Severity: Major
        Found in static/components/accordion.js - About 2 days to fix

          File visibility.js has 972 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * # Semantic UI 1.12.3 - Visibility
           * http://github.com/semantic-org/semantic-ui/
           *
           *
          Severity: Major
          Found in static/components/visibility.js - About 2 days to fix

            File transition.js has 925 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * # Semantic UI 1.12.3 - Transition
             * http://github.com/semantic-org/semantic-ui/
             *
             *
            Severity: Major
            Found in static/components/transition.js - About 2 days to fix

              Function checkbox has 420 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              $.fn.checkbox = function(parameters) {
                var
                  $allModules    = $(this),
                  moduleSelector = $allModules.selector || '',
              
              
              Severity: Major
              Found in static/components/checkbox.js - About 2 days to fix

                Function video has 412 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.fn.video = function(parameters) {
                
                  var
                    $allModules     = $(this),
                
                
                Severity: Major
                Found in static/components/video.js - About 2 days to fix

                  Function site has 389 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  $.site = $.fn.site = function(parameters) {
                    var
                      time           = new Date().getTime(),
                      performance    = [],
                  
                  
                  Severity: Major
                  Found in static/components/site.js - About 1 day to fix

                    Function nag has 372 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    $.fn.nag = function(parameters) {
                      var
                        $allModules    = $(this),
                        moduleSelector = $allModules.selector || '',
                    
                    
                    Severity: Major
                    Found in static/components/nag.js - About 1 day to fix

                      File modal.js has 783 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

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

                        Function rating has 355 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        $.fn.rating = function(parameters) {
                          var
                            $allModules     = $(this),
                            moduleSelector  = $allModules.selector || '',
                        
                        
                        Severity: Major
                        Found in static/components/rating.js - About 1 day to fix

                          File api.js has 753 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

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

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

                                argmax : kwargs((function () {
                                    function withAxis(data, source, offsetStride, axisSize, stride) {
                                        var cursor = 0;
                                        for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                            for (var i = 0; i < stride; i++) {
                            Severity: Major
                            Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
                            static/js/dncp/util/ndarray.js on lines 781..818

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

                            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

                                argmin : kwargs((function () {
                                    function withAxis(data, source, offsetStride, axisSize, stride) {
                                        var cursor = 0;
                                        for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                            for (var i = 0; i < stride; i++) {
                            Severity: Major
                            Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 day to fix
                            static/js/dncp/util/ndarray.js on lines 736..773

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

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

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

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

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

                            Refactorings

                            Further Reading

                            File 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

                              File sticky.js has 727 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

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

                                File progress.js has 722 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*!
                                 * # Semantic UI 1.12.3 - Progress
                                 * http://github.com/semantic-org/semantic-ui/
                                 *
                                 *
                                Severity: Major
                                Found in static/components/progress.js - About 1 day to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language