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,
Function iniciar
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def iniciar(self, receptor, control=None, direcciones=8, velocidad_maxima=4,
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,
Function Mapa
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def Mapa(self, x=0, y=0, grilla=None, filas=20, columnas=20,
Function iniciar
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def iniciar(self, x=0, y=0, grilla=None, filas=20, columnas=20,
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):
Function reiniciar
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def reiniciar(self, ancho=640, alto=480, titulo='pilas-engine',
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, motor, ancho, alto, titulo, rendimiento=60, area_fisica=None,
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,
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, receptor, control=None, direcciones=OCHO_DIRECCIONES, velocidad_maxima=4,
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() {
Function fix
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}
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);
}
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() {
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)
Function fix
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}
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 = []
- Read upRead up
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.
"""
- Read upRead up
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)
- Read upRead up
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()
- Read upRead up
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"