nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

Function withAxis has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        function withAxis(data, source, offsetStride, axisSize, stride) {
Severity: Minor
Found in static/js/dncp/util/ndarray.js - About 35 mins to fix

    Function ring has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        function ring(zr, oldShape, newShape, duration, easing) {
    Severity: Minor
    Found in static/js/dncp/util/ecAnimation.js - About 35 mins to fix

      Function withAxis has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              function withAxis(data, source, offsetStride, axisSize, stride) {
      Severity: Minor
      Found in static/js/dncp/util/ndarray.js - About 35 mins to fix

        Function withAxis has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                function withAxis(data, source, offsetStride, axisSize, stride) {
        Severity: Minor
        Found in static/js/dncp/util/ndarray.js - About 35 mins to fix

          Function easeInOutQuint has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            easeInOutQuint: function (x, t, b, c, d) {
          Severity: Minor
          Found in static/components/sidebar.js - About 35 mins to fix

            Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              easeOutQuad: function (x, t, b, c, d) {
            Severity: Minor
            Found in static/components/popup.js - About 35 mins to fix

              Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                easeOutQuad: function (x, t, b, c, d) {
              Severity: Minor
              Found in static/components/dropdown.js - About 35 mins to fix

                Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  easeOutQuad: function (x, t, b, c, d) {
                Severity: Minor
                Found in static/components/accordion.js - About 35 mins to fix

                  Function convert has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def convert(test, iny, inx, outy, outx):
                  Severity: Minor
                  Found in openfonacide/tests.py - About 35 mins to fix

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

                                $window
                                  .on('load' + eventNamespace, module.event.load)
                                  .on('resize' + eventNamespace, module.event.resize)
                                ;
                    Severity: Minor
                    Found in static/components/visibility.js and 1 other location - About 35 mins to fix
                    static/components/sticky.js on lines 155..158

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                $window
                                  .on('load' + eventNamespace, module.event.load)
                                  .on('resize' + eventNamespace, module.event.resize)
                                ;
                    Severity: Minor
                    Found in static/components/sticky.js and 1 other location - About 35 mins to fix
                    static/components/visibility.js on lines 139..142

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                $navigation
                                  .addClass(className.active)
                                  .siblings($allModules)
                                    .removeClass(className.active + ' ' + className.loading)
                                ;
                    Severity: Minor
                    Found in static/components/tab.js and 1 other location - About 35 mins to fix
                    static/components/tab.js on lines 430..434

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                var x = (point[0] - convertor.offset.x) * convertor.scale.x
                                        + convertor.offset.left;
                    Severity: Minor
                    Found in static/js/dncp/util/projection/normal.js and 1 other location - About 35 mins to fix
                    static/js/dncp/util/projection/normal.js on lines 78..79

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                    if (lo._shape[cl] == 1) {
                                        shape.unshift(ro._shape[cr]);
                                        loBroadCasted = lo.repeat(ro._shape[cr], cl);
                                    } else if(ro._shape[cr] == 1) {
                                        shape.unshift(lo._shape[cl]);
                    Severity: Minor
                    Found in static/js/dncp/util/ndarray.js and 1 other location - About 35 mins to fix
                    static/js/dncp/util/ndarray.js on lines 1416..1423

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                $tab
                                  .addClass(className.active)
                                  .siblings($tabs)
                                    .removeClass(className.active + ' ' + className.loading)
                                ;
                    Severity: Minor
                    Found in static/components/tab.js and 1 other location - About 35 mins to fix
                    static/components/tab.js on lines 441..445

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                    } else if(ro._shape[cr] == 1) {
                                        shape.unshift(lo._shape[cl]);
                                        roBroadCasted = ro.repeat(lo._shape[cl], cr);
                                    } else if(ro._shape[cr] == lo._shape[cl]) {
                                        shape.unshift(lo._shape[cl]);
                    Severity: Minor
                    Found in static/js/dncp/util/ndarray.js and 1 other location - About 35 mins to fix
                    static/js/dncp/util/ndarray.js on lines 1413..1423

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                                var y = (point[1] - convertor.offset.y) * convertor.scale.y
                                        + convertor.offset.top;
                    Severity: Minor
                    Found in static/js/dncp/util/projection/normal.js and 1 other location - About 35 mins to fix
                    static/js/dncp/util/projection/normal.js on lines 76..77

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

                    Function post has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def post(self, request, *args, **kwargs):
                            data_list = request.data
                            respuesta_list = list()
                            for data in data_list:
                                try:
                    Severity: Minor
                    Found in openfonacide/views.py - About 35 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function generar_ubicacion has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    def generar_ubicacion(request):
                        cursor = connection.cursor()
                        query = ('SELECT codigo_departamento, min(nombre_departamento), codigo_distrito,'
                                'min(nombre_distrito), codigo_barrio_localidad, min(nombre_barrio_localidad) '
                                'FROM openfonacide_establecimiento '
                    Severity: Minor
                    Found in openfonacide/filtros.py - About 35 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function tiene_nombre_santo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    def tiene_nombre_santo(c1, c2):
                        """
                        Verificar si c1 o c2 tiene las palabras
                        SAN, SANTA o SANTO, ambos
                    
                    
                    Severity: Minor
                    Found in openfonacide/matcher.py - About 35 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Severity
                    Category
                    Status
                    Source
                    Language