hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

Function remove has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    remove: function( elem, types, handler, selector, mappedTypes ) {

        var t, tns, type, origType, namespaces, origCount,
            j, events, special, eventType, handleObj,
            elemData = jQuery.hasData( elem ) && jQuery._data( elem );
Severity: Minor
Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

    Function initEvents has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function initEvents() {
        $(document).on("click", 'a.comment-close', function(event) {
          event.preventDefault();
          hide($(this).attr('id').substring(2));
        });
    Severity: Minor
    Found in data/api/_static/websupport.js - About 1 hr to fix

      Function cuando_pulsa_una_tecla has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def cuando_pulsa_una_tecla(self, evento):
              if self.tiene_el_foco and self.activo:
                  if evento.codigo == '\x08' or evento.texto == '\x08':
                      # Indica que se quiere borrar un caracter
                      self.texto = self.texto[:-1]
      Severity: Minor
      Found in pilasengine/interfaz/ingreso_de_texto.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_callback has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def _ejecutar_callback(self, evento, listado_de_callbacks):
              """ Ejecuta el listado de métodos asociados a un callback si se
              produce una colisión con el ratón y el actor
              """
              if self.colisiona_con_un_punto(evento.x, evento.y):
      Severity: Minor
      Found in pilasengine/actores/actor.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_capas has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def mover_capas(self, dx):
              for capa in self.capas:
                  capa.x -= dx * self.velocidades[capa]
      
              if self.ciclico:
      Severity: Minor
      Found in pilas/fondos.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_pulsa_una_tecla has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def cuando_pulsa_una_tecla(self, evento):
              if self.tiene_el_foco and self.activo:
                  if evento.codigo == '\x08' or evento.texto == '\x08':
                      # Indica que se quiere borrar un caracter
                      self.texto = self.texto[:-1]
      Severity: Minor
      Found in pilas/interfaz/ingreso_de_texto.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_callback has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def _ejecutar_callback(self, evento, listado_de_callbacks ):
              """ Ejecuta el listado de métodos asociados a un callback si se
              produce una colisión con el ratón y el actor
              """
              if self.colisiona_con_un_punto(evento.x, evento.y):
      Severity: Minor
      Found in pilas/actores/actor.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 select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      select = Sizzle.select = function( selector, context, results, seed ) {
          var i, tokens, token, type, find,
              compiled = typeof selector === "function" && selector,
              match = !seed && tokenize( (selector = compiled.selector || selector) );
      
      
      Severity: Minor
      Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

        Function internalData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
            if ( !jQuery.acceptData( elem ) ) {
                return;
            }
        
        
        Severity: Minor
        Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

          Function ngViewFactory has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function ngViewFactory(   $route,   $anchorScroll,   $animate) {
            return {
              restrict: 'ECA',
              terminal: true,
              priority: 400,
          Severity: Minor
          Found in data/asistente/js/angular-route.js - About 1 hr to fix

            Function select has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            select = Sizzle.select = function( selector, context, results, seed ) {
                var i, tokens, token, type, find,
                    compiled = typeof selector === "function" && selector,
                    match = !seed && tokenize( (selector = compiled.selector || selector) );
            
            
            Severity: Minor
            Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

              Function internalData has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
                  if ( !jQuery.acceptData( elem ) ) {
                      return;
                  }
              
              
              Severity: Minor
              Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

                Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                    var matched, match, tokens, type,
                        soFar, groups, preFilters,
                        cached = tokenCache[ selector + " " ];
                
                
                Severity: Minor
                Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                  Function slide has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    Carousel.prototype.slide = function (type, next) {
                      var $active   = this.$element.find('.item.active')
                      var $next     = next || $active[type]()
                      var isCycling = this.interval
                      var direction = type == 'next' ? 'left' : 'right'
                  Severity: Minor
                  Found in data/asistente/js/bootstrap.js - About 1 hr to fix

                    Function select has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function select( selector, context, results, seed, xml ) {
                        var i, tokens, token, type, find,
                            match = tokenize( selector ),
                            j = match.length;
                    
                    Severity: Minor
                    Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

                      Function removeData has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          removeData: function( elem, name, pvt /* Internal Use Only */ ) {
                              if ( !jQuery.acceptData( elem ) ) {
                                  return;
                              }
                      
                      
                      Severity: Minor
                      Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

                        Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                            var matched, match, tokens, type,
                                soFar, groups, preFilters,
                                cached = tokenCache[ selector + " " ];
                        
                        
                        Severity: Minor
                        Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

                          Function CHILD has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  "CHILD": function( type, argument, first, last ) {
                          
                                      if ( type === "nth" ) {
                                          return function( elem ) {
                                              var node, diff,
                          Severity: Minor
                          Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

                            Function matcherFromTokens has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function matcherFromTokens( tokens ) {
                                var checkContext, matcher, j,
                                    len = tokens.length,
                                    leadingRelative = Expr.relative[ tokens[0].type ],
                                    implicitRelative = leadingRelative || Expr.relative[" "],
                            Severity: Minor
                            Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                              Function addCombinator has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function addCombinator( matcher, combinator, base ) {
                                  var dir = combinator.dir,
                                      checkNonElements = base && combinator.dir === "parentNode",
                                      doneName = done++;
                              
                              Severity: Minor
                              Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language