hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

Function done has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function done( status, nativeStatusText, responses, headers ) {
            var isSuccess, success, error, response, modified,
                statusText = nativeStatusText;

            // Called once
Severity: Major
Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

    Function user_data_dir has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
    Open

    def user_data_dir(appname=None, appauthor=None, version=None, roaming=False):
        r"""Return full path to the user-specific 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 2 hrs 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 19 (exceeds 5 allowed). Consider refactoring.
    Open

        def mover(self):
            if self.direcciones == 8:
                if self.control.izquierda:
                    self.receptor.x -= self.velocidad_maxima
                elif self.control.derecha:
    Severity: Minor
    Found in pilasengine/habilidades/moverse_con_el_teclado.py - About 2 hrs 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 user_cache_dir has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
    Open

    def user_cache_dir(appname=None, appauthor=None, version=None, opinion=True):
        r"""Return full path to the user-specific cache 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 2 hrs 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 _insertar_elemento has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
    Open

        def _insertar_elemento(self, elemento, elemento_padre=None):
    
            if (self._contiene_diccionario(elemento)):
                if (hasattr(elemento, '__class__')):
                    if (elemento.__class__.__name__ != 'dict'):
    Severity: Minor
    Found in pilas/widget_log.py - About 2 hrs 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 domManip has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        domManip: function( args, table, callback ) {
    
            // Flatten any nested arrays
            args = [].concat.apply( [], args );
    
    
    Severity: Major
    Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

      Function dispatch has 63 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 || window.event );
      
      
      Severity: Major
      Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

        VentanaAsistente has 23 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class VentanaAsistente(Ui_AsistenteWindow):
        
            def setupUi(self, main):
                self.nombre_archivo_script = ""
                self.main = main
        Severity: Minor
        Found in pilas/asistente.py - About 2 hrs to fix

          Fisica has 23 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Fisica(object):
              """Representa un simulador de mundo fisico, usando la biblioteca Box2D (version 2.1)."""
          
              def __init__(self, area, gravedad):
                  """Inicializa el motor de física.
          Severity: Minor
          Found in pilas/fisica.py - About 2 hrs to fix

            File angular-route.js has 270 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * @license AngularJS v1.2.10-build.2178+sha.40dc806
             * (c) 2010-2014 Google, Inc. http://angularjs.org
             * License: MIT
             */
            Severity: Minor
            Found in data/asistente/js/angular-route.js - About 2 hrs to fix

              Function _vincular_todos_los_actores_estandar has 62 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  def _vincular_todos_los_actores_estandar(self):
                      self.vincular_actor_estandar('misil', 'Misil')
                      self.vincular_actor_estandar('actor', 'Actor')
                      self.vincular_actor_estandar('texto', 'Texto')
                      self.vincular_actor_estandar('texto_inferior', 'TextoInferior')
              Severity: Major
              Found in pilasengine/actores/__init__.py - About 2 hrs to fix

                Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        superMatcher = function( seed, context, xml, results, outermost ) {
                            var elem, j, matcher,
                                matchedCount = 0,
                                i = "0",
                                unmatched = seed && [],
                Severity: Major
                Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                  Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          superMatcher = function( seed, context, xml, results, expandContext ) {
                              var elem, j, matcher,
                                  setMatched = [],
                                  matchedCount = 0,
                                  i = "0",
                  Severity: Major
                  Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

                    Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            superMatcher = function( seed, context, xml, results, outermost ) {
                                var elem, j, matcher,
                                    matchedCount = 0,
                                    i = "0",
                                    unmatched = seed && [],
                    Severity: Major
                    Found in data/api/_static/jquery-1.11.1.js - About 2 hrs to fix

                      Function decode_arguments has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def decode_arguments(self, inicial):
                              """Internal setup procedure to create tweenables and work out how to
                                 deal with each
                                 """
                      
                      
                      Severity: Minor
                      Found in pilasengine/utils/pitweener.py - About 2 hrs 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 update has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def update(self, ptime=None):
                              """Update this tween with the time since the last frame. If there is an
                                 update function, it is always called whether the tween is running or
                                 paused. ptime is the change in time in seconds.
                                 """
                      Severity: Minor
                      Found in pilasengine/utils/pitweener.py - About 2 hrs 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 domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          domManip: function( args, callback ) {
                      
                              // Flatten any nested arrays
                              args = concat.apply( [], args );
                      
                      
                      Severity: Major
                      Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                        Function send has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        send: function( headers, complete ) {
                                            var i,
                                                xhr = options.xhr(),
                                                id = ++xhrId;
                        
                        
                        Severity: Major
                        Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                          Function init has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              init = jQuery.fn.init = function( selector, context ) {
                                  var match, elem;
                          
                                  // HANDLE: $(""), $(null), $(undefined), $(false)
                                  if ( !selector ) {
                          Severity: Major
                          Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                            Function Deferred has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Deferred: function( func ) {
                                    var tuples = [
                                            // action, add listener, listener list, final state
                                            [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                            [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                            Severity: Major
                            Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language