nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

Function get has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    get : function (index, out) {
        if (typeof(index) == 'number') {
            index = index.toString();
        }
        var strides = calculateDimStrides(this._shape);
Severity: Major
Found in static/js/dncp/util/ndarray.js - About 2 hrs to fix

    Function transition has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              transition: function(forced) {
                var
                  elementClass      = $module.attr('class'),
                  tagName           = $module.prop('tagName'),
                  animation         = settings.animation,
    Severity: Major
    Found in static/components/transition.js - About 2 hrs to fix

      Function category has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          category: function(response) {
            var
              html = '',
              escape = $.fn.search.settings.templates.escape
            ;
      Severity: Major
      Found in static/components/search.js - About 2 hrs to fix

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

                    if (x >= rect.x
                        && x <= (rect.x + rect.width)
                        && y >= rect.y
                        && y <= (rect.y + rect.height)
                    ) {
        Severity: Major
        Found in static/js/dncp/util/shape/HandlePolygon.js and 1 other location - About 2 hrs to fix
        static/js/dncp/util/shape/Chain.js on lines 164..174

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

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

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

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

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

        Refactorings

        Further Reading

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

                    if (x >= rect.x
                        && x <= (rect.x + rect.width)
                        && y >= rect.y
                        && y <= (rect.y + rect.height)
                    ) {
        Severity: Major
        Found in static/js/dncp/util/shape/Chain.js and 1 other location - About 2 hrs to fix
        static/js/dncp/util/shape/HandlePolygon.js on lines 36..46

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

        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

            if filtro == "cantidad_adjudicaciones":
              print "cantidad_adjudicaciones"
              p1 = Process(target=cantidad_adjudicaciones, args=(filtro, opcion,anio, query))
              p1.start()        
              p1.join()
        Severity: Major
        Found in openfonacide/infografiaDNCP.py and 3 other locations - About 2 hrs to fix
        openfonacide/infografiaDNCP.py on lines 35..40
        openfonacide/infografiaDNCP.py on lines 41..46
        openfonacide/infografiaDNCP.py on lines 47..52

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 52.

        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

            elif filtro == "procedimiento":
              print 'procedimiento'
              p1 = Process(target=procedimiento, args=(filtro, opcion,anio, query))
              p1.start()        
              p1.join()
        Severity: Major
        Found in openfonacide/infografiaDNCP.py and 3 other locations - About 2 hrs to fix
        openfonacide/infografiaDNCP.py on lines 29..34
        openfonacide/infografiaDNCP.py on lines 35..40
        openfonacide/infografiaDNCP.py on lines 41..46

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

        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

            elif filtro == "categoria":
              print 'categoria'
              p1 = Process(target=categoria, args=(filtro, opcion,anio, query))
              p1.start()        
              p1.join()
        Severity: Major
        Found in openfonacide/infografiaDNCP.py and 3 other locations - About 2 hrs to fix
        openfonacide/infografiaDNCP.py on lines 29..34
        openfonacide/infografiaDNCP.py on lines 35..40
        openfonacide/infografiaDNCP.py on lines 47..52

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 52.

        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

            elif filtro == "monto_adjudicaciones":
              print 'monto_adjudicaciones'
              p1 = Process(target=monto_adjudicaciones, args=(filtro, opcion,anio, query))
              p1.start()        
              p1.join()
        Severity: Major
        Found in openfonacide/infografiaDNCP.py and 3 other locations - About 2 hrs to fix
        openfonacide/infografiaDNCP.py on lines 29..34
        openfonacide/infografiaDNCP.py on lines 41..46
        openfonacide/infografiaDNCP.py on lines 47..52

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 52.

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

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

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

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

        Refactorings

        Further Reading

        Function largeLine has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function largeLine(zr, effectList, shape, zlevel) {
                var effectShape = new ShapeBundle({
                    style: {
                        shapeList: []
                    },
        Severity: Major
        Found in static/js/dncp/util/ecEffect.js - About 2 hrs to fix

          Function showModal has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  showModal: function(callback) {
                    callback = $.isFunction(callback)
                      ? callback
                      : function(){}
                    ;
          Severity: Major
          Found in static/components/modal.js - About 2 hrs to fix

            Function invoke has 54 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/transition.js - About 2 hrs to fix

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

                      zr.animate(newShape.id, 'style')
                          .when(
                              duration,
                              {
                                  x: newX,
              Severity: Major
              Found in static/js/dncp/util/ecAnimation.js and 2 other locations - About 2 hrs to fix
              static/js/dncp/util/ecAnimation.js on lines 412..425
              static/js/dncp/util/ecAnimation.js on lines 534..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 78.

              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

                      zr.animate(newShape.id, 'style')
                          .when(
                              duration,
                              {
                                  xStart: xStart,
              Severity: Major
              Found in static/js/dncp/util/ecAnimation.js and 2 other locations - About 2 hrs to fix
              static/js/dncp/util/ecAnimation.js on lines 148..161
              static/js/dncp/util/ecAnimation.js on lines 412..425

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

              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

                      zr.animate(newShape.id, 'style')
                          .when(
                              duration,
                              {
                                  source0 : source0,
              Severity: Major
              Found in static/js/dncp/util/ecAnimation.js and 2 other locations - About 2 hrs to fix
              static/js/dncp/util/ecAnimation.js on lines 148..161
              static/js/dncp/util/ecAnimation.js on lines 534..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 78.

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

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

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

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

              Refactorings

              Further Reading

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

                          if(callback) {
                            if(module.cache.occurred[callback] !== undefined && module.cache.occurred[callback] === true) {
                              module.debug('Callback can now be called again', callback);
                              module.cache.occurred[callback] = false;
                            }
              Severity: Major
              Found in static/components/visibility.js and 1 other location - About 2 hrs to fix
              static/components/visibility.js on lines 679..684

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

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

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

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

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

              Refactorings

              Further Reading

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

                          if(callback) {
                            if(module.cache.occurred[callback] === undefined || (module.cache.occurred[callback] !== true)) {
                              module.verbose('Saving callback occurred', callback);
                              module.cache.occurred[callback] = true;
                            }
              Severity: Major
              Found in static/components/visibility.js and 1 other location - About 2 hrs to fix
              static/components/visibility.js on lines 659..667

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

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

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

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

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

              Refactorings

              Further Reading

              Function brushSymbol has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      brushSymbol : function (ctx, style, idx) {
                          if (style.symbol[idx] == 'none') {
                              return;
                          }
                          ctx.save();
              Severity: Major
              Found in static/js/dncp/util/shape/MarkLine.js - About 2 hrs to fix

                Function filtro has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                $scope.filtro = function () {
                                    loading(true);
                                    var params = {};
                
                                    if ($scope.otrosSeleccionados.check) {
                Severity: Major
                Found in static/js/frontend.MapController.js - About 2 hrs to fix

                  Function values has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                            values: function (fields) {
                              if($.isEmptyObject(fields)) {
                                return;
                              }
                              $.each(fields, function(key, value) {
                  Severity: Major
                  Found in static/components/form.js - About 2 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language