hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def __init__(self, pilas, texto="Sin texto", magnitud=20, vertical=False,
Severity: Major
Found in pilasengine/actores/texto.py - About 1 hr to fix

    Function iniciar has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def iniciar(self, receptor, control=None, direcciones=8, velocidad_maxima=4,
    Severity: Major
    Found in pilasengine/habilidades/moverse_con_el_teclado.py - About 1 hr to fix

      Function Globo has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def Globo(self, texto="sin texto", x=0, y=0, dialogo=None, avance_con_clicks=True,
      Severity: Major
      Found in pilasengine/actores/__init__.py - About 1 hr to fix

        Function Mapa has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def Mapa(self, x=0, y=0, grilla=None, filas=20, columnas=20,
        Severity: Major
        Found in pilasengine/actores/__init__.py - About 1 hr to fix

          Function iniciar has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def iniciar(self, x=0, y=0, grilla=None, filas=20, columnas=20,
          Severity: Major
          Found in pilasengine/actores/mapa.py - About 1 hr to fix

            Function dibujar has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def dibujar(self, painter, x, y, dx=0, dy=0, escala_x=1, escala_y=1, rotacion=0, transparencia=0):
            Severity: Major
            Found in pilas/motores/motor_qt.py - About 1 hr to fix

              Function reiniciar has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def reiniciar(self, ancho=640, alto=480, titulo='pilas-engine',
              Severity: Major
              Found in pilasengine/__init__.py - About 1 hr to fix

                Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(self, motor, ancho, alto, titulo, rendimiento=60, area_fisica=None,
                Severity: Major
                Found in pilas/mundo.py - About 1 hr to fix

                  Function iniciar_con_lanzador has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def iniciar_con_lanzador(ancho=640, alto=480, titulo='Pilas', rendimiento=60,
                  Severity: Major
                  Found in pilas/__init__.py - About 1 hr to fix

                    Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def __init__(self, receptor, control=None, direcciones=OCHO_DIRECCIONES, velocidad_maxima=4,
                    Severity: Major
                    Found in pilas/habilidades.py - About 1 hr to fix

                      Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          finish: function( type ) {
                              if ( type !== false ) {
                                  type = type || "fx";
                              }
                              return this.each(function() {
                      Severity: Minor
                      Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                        Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            fix: function( event ) {
                                if ( event[ jQuery.expando ] ) {
                                    return event;
                                }
                        
                        
                        Severity: Minor
                        Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                          Function processGroup has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      processGroup = function(i, group_keys, callback) {
                                          if (i >= group_keys.length) {
                                              return callback(replacement);
                                          }
                          
                          
                          Severity: Minor
                          Found in data/asistente/js/rainbow.js - About 1 hr to fix

                            Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                finish: function( type ) {
                                    if ( type !== false ) {
                                        type = type || "fx";
                                    }
                                    return this.each(function() {
                            Severity: Minor
                            Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

                              Function __init__ has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  def __init__(self, pilas):
                                      if not pilas:
                                          mensaje = "Ten cuidado, tienes que enviar 'pilas' como argumento de la escena al crearla."
                                          raise Exception(mensaje)
                              
                              
                              Severity: Minor
                              Found in pilasengine/escenas/escena.py - About 1 hr to fix

                                Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    fix: function( event ) {
                                        if ( event[ jQuery.expando ] ) {
                                            return event;
                                        }
                                
                                
                                Severity: Minor
                                Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

                                  Function funcion_valores_autocompletado has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def funcion_valores_autocompletado(self, texto):
                                          scope = self.interpreterLocals
                                          texto = texto.replace('(', ' ').split(' ')[-1]
                                          resultados = []
                                  
                                  
                                  Severity: Minor
                                  Found in pilasengine/interprete/lanas.py - About 1 hr 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 cuando_mueve_el_mouse has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def cuando_mueve_el_mouse(self, evento):
                                          """Permite cambiar la opcion actual moviendo el mouse. Retorna True si el mouse esta sobre alguna opcion.
                                  
                                          :param evento: El evento que representa el movimiento del mouse.
                                          """
                                  Severity: Minor
                                  Found in pilasengine/actores/menu.py - About 1 hr 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 crear_enemigo has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  def crear_enemigo():
                                  
                                      enemigo = pilas.actores.Mono()
                                      x = random.randrange(-320, 320)
                                      y = random.randrange(-240, 240)
                                  Severity: Minor
                                  Found in pilasengine/ejemplos/disparar_a_monos.py - About 1 hr 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 ejecutar has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def ejecutar(self):
                                          """Muestra la ventana y mantiene el programa en ejecución."""
                                          if not self._iniciado_desde_asistente:
                                              if self.widget.pantalla_completa:
                                                  self.widget.showFullScreen()
                                  Severity: Minor
                                  Found in pilasengine/__init__.py - About 1 hr 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