nemesiscodex/openfonacide

View on GitHub

Showing 350 of 970 total issues

Function tipo_requerimiento has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

def tipo_requerimiento(periodo, prioridades, ubicaciones, estados, dncp, ret):
Severity: Minor
Found in openfonacide/resumen.py - About 45 mins to fix

    Function get_object has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        def get_object(self):
            queryset = self.get_queryset()  # Get the base queryset
            queryset = self.filter_queryset(queryset)  # Apply any filter backends
            filter = {}
            for field in self.lookup_fields:
    Severity: Minor
    Found in openfonacide/views.py - About 45 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 filtro_prioridad has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def filtro_prioridad(tipo, rango, ubicacion, estado, documentos, reportadas):
    Severity: Minor
    Found in openfonacide/filtros.py - About 45 mins to fix

      Function elegibles has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def elegibles(periodo, prioridades, ubicaciones, estados, dncp, ret):
      Severity: Minor
      Found in openfonacide/resumen.py - About 45 mins to fix

        Function generar_query has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

        def generar_query(params):
            periodo = params.get('anios')
            ubicaciones = params.get('ubicaciones')
            prioridades = params.get('prioridades')
            estados = params.get('estado')
        Severity: Minor
        Found in openfonacide/resumen.py - About 45 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 beneficiarios_pedidos has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def beneficiarios_pedidos(periodo, prioridades, ubicaciones, estados, dncp, ret):
        Severity: Minor
        Found in openfonacide/resumen.py - About 45 mins to fix

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

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

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

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

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

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

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

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

                            function candle(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, oldShape, newShape, duration, easing) {
                            Severity: Minor
                            Found in static/js/dncp/util/ecAnimation.js - About 35 mins to fix

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

                                 function grafica1( cantidades, nombres, anio, opcion,url) {
                              Severity: Minor
                              Found in static/js/dncp/chart1.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 grafica2 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                     function grafica2( cantidades, nombres, anio, opcion,url) {
                                  Severity: Minor
                                  Found in static/js/dncp/chart2.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
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language