hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

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

    def __init__(self, receptor,
Severity: Major
Found in pilas/habilidades.py - About 1 hr to fix

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

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

      Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function ajaxHandleResponses( s, jqXHR, responses ) {
          var firstDataType, ct, finalDataType, type,
              contents = s.contents,
              dataTypes = s.dataTypes;
      
      
      Severity: Minor
      Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

        Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function ajaxHandleResponses( s, jqXHR, responses ) {
            var firstDataType, ct, finalDataType, type,
                contents = s.contents,
                dataTypes = s.dataTypes;
        
        
        Severity: Minor
        Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

          Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              when: function( subordinate /* , ..., subordinateN */ ) {
                  var i = 0,
                      resolveValues = slice.call( arguments ),
                      length = resolveValues.length,
          
          
          Severity: Minor
          Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

            Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                when: function( subordinate /* , ..., subordinateN */ ) {
                    var i = 0,
                        resolveValues = core_slice.call( arguments ),
                        length = resolveValues.length,
            
            
            Severity: Minor
            Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

              Function positionTooltip has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          var positionTooltip = function (){
                            var position,
                              ttWidth,
                              ttHeight,
                              ttPosition;
              Severity: Minor
              Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

                Function performTermsSearch has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  performTermsSearch : function(searchterms, excluded, terms, score) {
                    var filenames = this._index.filenames;
                    var titles = this._index.titles;
                
                    var i, j, file, files;
                Severity: Minor
                Found in data/api/_static/searchtools.js - About 1 hr to fix

                  Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      when: function( subordinate /* , ..., subordinateN */ ) {
                          var i = 0,
                              resolveValues = slice.call( arguments ),
                              length = resolveValues.length,
                  
                  
                  Severity: Minor
                  Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

                    Function disparar has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def disparar(self):
                            if (self.receptor.espejado):
                                offset_origen_actor_x = -self.offset_origen_actor_x
                            else:
                                offset_origen_actor_x = self.offset_origen_actor_x
                    Severity: Minor
                    Found in pilasengine/habilidades/disparar.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 definir_modos has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def definir_modos(self, info=False, radios=False, posiciones=False,
                                          puntos_de_control=False, areas=False,
                                          fisica=False):
                            """Permite habilitar o deshabilitar los modos depuración.
                    
                    
                    Severity: Minor
                    Found in pilasengine/depurador/__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

                    Function site_config_dir has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                    def site_config_dir(appname=None, appauthor=None, version=None, multipath=False):
                        """Return full path to the user-shared data dir for this application.
                    
                            "appname" is the name of application.
                                If None, just the system directory is returned.
                    Severity: Minor
                    Found in pilasengine/datos/appdirs.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 mover has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def mover(self, x, y):
                            if x and y:
                                raise Exception("El pacman no se puede mover en diagonal")
                    
                            destino_x = self.x + self.velocidad * x
                    Severity: Minor
                    Found in pilasengine/ejemplos/ejemplos_a_revisar/pacman_simple.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 paintEvent has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def paintEvent(self, event):
                            self.painter.begin(self)
                            self.painter.scale(self.escala, self.escala)
                    
                            self.painter.setRenderHint(QtGui.QPainter.HighQualityAntialiasing, True)
                    Severity: Minor
                    Found in pilas/motores/motor_qt.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 intentar_conectarse_a has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def intentar_conectarse_a(self, otra):
                            "Intenta vincular dos piezas, siempre y cuando coincidan en sus bordes."
                    
                            # Intenta conectar los bordes laterales
                            if self.numero_derecha == otra.numero:
                    Severity: Minor
                    Found in pilas/demos/piezas.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 addTweenNoArgs has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def addTweenNoArgs(self, obj, function, initial_value, value, **kwargs):
                            "Similar a addTween, solo que se especifica la funcion y el valor de forma explicita."
                            args = {function: value, 'initial_value': initial_value}
                    
                            if "tweenTime" in kwargs:
                    Severity: Minor
                    Found in pilas/pytweener.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 mover has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def mover(self, x, y):
                            if x and y:
                                raise Exception("El pacman no se puede mover en diagonal")
                    
                            destino_x = self.x + self.velocidad * x
                    Severity: Minor
                    Found in pilas/ejemplos/ejemplos/minijuegos/pacman_simple.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 showHide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function showHide( elements, show ) {
                        var display, elem, hidden,
                            values = [],
                            index = 0,
                            length = elements.length;
                    Severity: Minor
                    Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                      Function access has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                          var i = 0,
                              length = elems.length,
                              bulk = key == null;
                      
                      
                      Severity: Minor
                      Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                        Function dispatch has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            dispatch: function( event ) {
                        
                                // Make a writable jQuery.Event from the native event object
                                event = jQuery.event.fix( event );
                        
                        
                        Severity: Minor
                        Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language