hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

Motor has 30 functions (exceeds 20 allowed). Consider refactoring.
Open

class Motor(object):
    """Representa la ventana principal de pilas.

    Esta clase construirá el objeto apuntado por el atributo
    ``pilas.motor``, asi que será el representante de todas
Severity: Minor
Found in pilas/motores/motor_qt.py - About 3 hrs to fix

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

                    send: function( headers, complete ) {
    
                        // Get a new xhr
                        var handle, i,
                            xhr = s.xhr();
    Severity: Major
    Found in data/asistente/js/jquery-1.8.3.js - About 3 hrs to fix

      Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          trigger: function( event, data, elem, onlyHandlers ) {
              var handle, ontype, cur,
                  bubbleType, special, tmp, i,
                  eventPath = [ elem || document ],
                  type = hasOwn.call( event, "type" ) ? event.type : event,
      Severity: Major
      Found in data/manual/js/jquery-1.11.1.js - About 3 hrs to fix

        Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            trigger: function( event, data, elem, onlyHandlers ) {
                var handle, ontype, cur,
                    bubbleType, special, tmp, i,
                    eventPath = [ elem || document ],
                    type = hasOwn.call( event, "type" ) ? event.type : event,
        Severity: Major
        Found in data/api/_static/jquery-1.11.1.js - About 3 hrs to fix

          Function clean has 86 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              clean: function( elems, context, fragment, scripts ) {
                  var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
                      safe = context === document && safeFragment,
                      ret = [];
          
          
          Severity: Major
          Found in data/asistente/js/jquery-1.8.3.js - About 3 hrs to fix

            Function _verificar_colisiones_en_tupla has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
            Open

                def _verificar_colisiones_en_tupla(self, tupla):
                    "Toma dos grupos de actores y analiza colisiones entre ellos."
                    (grupo_a, grupo_b, funcion_a_llamar) = tupla
            
                    for a in grupo_a:
            Severity: Minor
            Found in pilas/colisiones.py - About 3 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

            File searchtools.js has 307 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*
             * searchtools.js_t
             * ~~~~~~~~~~~~~~~~
             *
             * Sphinx JavaScript utilties for the full-text search.
            Severity: Minor
            Found in data/api/_static/searchtools.js - About 3 hrs to fix

              Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function Animation( elem, properties, options ) {
                  var result,
                      stopped,
                      index = 0,
                      length = animationPrefilters.length,
              Severity: Major
              Found in data/manual/js/jquery-1.11.1.js - About 3 hrs to fix

                Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function Animation( elem, properties, options ) {
                    var result,
                        stopped,
                        index = 0,
                        length = animationPrefilters.length,
                Severity: Major
                Found in data/api/_static/jquery-1.11.1.js - About 3 hrs to fix

                  Editor has 28 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Editor(editor_base.EditorBase):
                      """Representa el editor de texto que aparece en el panel derecho.
                  
                      El editor soporta autocompletado de código y resaltado de sintáxis.
                      """
                  Severity: Minor
                  Found in pilasengine/interprete/editor.py - About 3 hrs to fix

                    File rainbow.js has 296 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /**
                     * Copyright 2013 Craig Campbell
                     *
                     * Licensed under the Apache License, Version 2.0 (the "License");
                     * you may not use this file except in compliance with the License.
                    Severity: Minor
                    Found in data/asistente/js/rainbow.js - About 3 hrs to fix

                      Function realizar_dibujado has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def realizar_dibujado(self, painter):
                              grosor = 1
                              cuerpos = self.pilas.fisica.mundo.bodies
                      
                              painter.save()
                      Severity: Minor
                      Found in pilasengine/depurador/modo_fisica.py - About 3 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 site_data_dir has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                      Open

                      def site_data_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 3 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 iniciar_asistente_desde_argumentos has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                      Open

                      def iniciar_asistente_desde_argumentos():
                          if sys.platform == 'darwin':
                              import pilas
                              pilas.abrir_asistente()
                          else:
                      Severity: Minor
                      Found in pilas/utils.py - About 3 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 Animation has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function Animation( elem, properties, options ) {
                          var result,
                              index = 0,
                              tweenerIndex = 0,
                              length = animationPrefilters.length,
                      Severity: Major
                      Found in data/asistente/js/jquery-1.8.3.js - About 3 hrs to fix

                        Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function Sizzle( selector, context, results, seed ) {
                            var match, elem, m, nodeType,
                                // QSA vars
                                i, groups, old, nid, newContext, newSelector;
                        
                        
                        Severity: Major
                        Found in data/manual/js/jquery-1.11.1.js - About 3 hrs to fix

                          Function Sizzle has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function Sizzle( selector, context, results, seed ) {
                              var match, elem, m, nodeType,
                                  // QSA vars
                                  i, groups, old, nid, newContext, newSelector;
                          
                          
                          Severity: Major
                          Found in data/api/_static/jquery-1.11.1.js - About 3 hrs to fix

                            Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                buildFragment: function( elems, context, scripts, selection ) {
                                    var j, elem, contains,
                                        tmp, tag, tbody, wrap,
                                        l = elems.length,
                            
                            
                            Severity: Major
                            Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                              Function buildFragment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  buildFragment: function( elems, context, scripts, selection ) {
                                      var j, elem, contains,
                                          tmp, tag, tbody, wrap,
                                          l = elems.length,
                              
                              
                              Severity: Major
                              Found in data/api/_static/jquery-1.11.1.js - About 2 hrs to fix

                                Function add has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    add: function( elem, types, handler, data, selector ) {
                                        var tmp, events, t, handleObjIn,
                                            special, eventHandle, handleObj,
                                            handlers, type, namespaces, origType,
                                            elemData = jQuery._data( elem );
                                Severity: Major
                                Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language