nemesiscodex/openfonacide

View on GitHub

Showing 350 of 970 total issues

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

    function gaugePointer(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 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 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 pointList has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

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

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

                    function sector(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 line has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        function line(zr, effectList, shape, zlevel, isLarge) {
                    Severity: Minor
                    Found in static/js/dncp/util/ecEffect.js - About 35 mins to fix

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

                          function text(zr, oldShape, newShape, duration, easing) {
                      Severity: Minor
                      Found in static/js/dncp/util/ecAnimation.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 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 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 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 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

                                    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