hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

Function __init__ has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def __init__(self, main=None, interpreter_locals=None, consola_lanas=None, ventana_interprete=None, *args):
        QWidget.__init__(self, *args)
        self.setupUi(self)
        self.setLayout(self.vertical_layout)
        self.ruta_del_archivo_actual = None
Severity: Minor
Found in pilasengine/interprete/editor.py - About 1 hr to fix

    Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jQuery.extend = jQuery.fn.extend = function() {
        var src, copyIsArray, copy, name, options, clone,
            target = arguments[0] || {},
            i = 1,
            length = arguments.length,
    Severity: Minor
    Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

      Function sphinx-rtd-theme has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

      require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"sphinx-rtd-theme":[function(require,module,exports){
      var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery');
      
      // Sphinx theme nav state
      function ThemeNav () {
      Severity: Minor
      Found in data/api/_static/js/theme.js - 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 agregar_actor has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def agregar_actor(self, actor):
              """Agrega un actor a la escena actual.
      
              Este método se ejecuta internamente cada vez que se
              contruye un actor escribiendo algo como:
      Severity: Minor
      Found in pilasengine/actores/__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 reiniciar has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def reiniciar(self, ancho=640, alto=480, titulo='pilas-engine',
                        con_aceleracion=None, habilitar_mensajes_log=False,
                        x=None, y=None, capturar_errores=True,
                        pantalla_completa=False):
              """Genera nuevamente la ventana del videojuego."""
      Severity: Minor
      Found in pilasengine/__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 cuando_pulsa_link has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def cuando_pulsa_link(self, url):
              seccion = str(url.path()).split('/')[-1]
      
              if seccion == "interprete":
                  self._cuando_selecciona_interprete()
      Severity: Minor
      Found in pilas/asistente.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 decodeArguments has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def decodeArguments(self):
              """Internal setup procedure to create tweenables and work out
                 how to deal with each"""
       
              if len(self.tweenables) == 0:
      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 eliminar_colisiones_con_actor has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def eliminar_colisiones_con_actor(self, actor):
      
              for x in self.colisiones:
      
                  grupo_a = x[0]
      Severity: Minor
      Found in pilas/colisiones.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 addCombinator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Function link has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            link: function(scope, $element, attr, ctrl, $transclude) {
                var currentScope,
                    currentElement,
                    autoScrollExp = attr.autoscroll,
                    onloadExp = attr.onload || '';
        Severity: Minor
        Found in data/asistente/js/angular-route.js - About 1 hr to fix

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

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

            Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                each: function( obj, callback, args ) {
                    var value,
                        i = 0,
                        length = obj.length,
                        isArray = isArraylike( obj );
            Severity: Minor
            Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

              Function computeStyleTests has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function computeStyleTests() {
                      // Minified: var b,c,d,j
                      var div, body, container, contents;
              
                      body = document.getElementsByTagName( "body" )[ 0 ];
              Severity: Minor
              Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

                Function load has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                jQuery.fn.load = function( url, params, callback ) {
                    if ( typeof url !== "string" && _load ) {
                        return _load.apply( this, arguments );
                    }
                
                
                Severity: Minor
                Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

                  Function postLink has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        return function postLink(scope, elm, attrs, tabsetCtrl) {
                          var getActive, setActive;
                          if (attrs.active) {
                            getActive = $parse(attrs.active);
                            setActive = getActive.assign;
                  Severity: Minor
                  Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

                    Function handleVote has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function handleVote(link) {
                        if (!opts.voting) {
                          showError("You'll need to login to vote.");
                          return;
                        }
                    Severity: Minor
                    Found in data/api/_static/websupport.js - About 1 hr to fix

                      Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          each: function( obj, callback, args ) {
                              var value,
                                  i = 0,
                                  length = obj.length,
                                  isArray = isArraylike( obj );
                      Severity: Minor
                      Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

                        Function computeStyleTests has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function computeStyleTests() {
                                // Minified: var b,c,d,j
                                var div, body, container, contents;
                        
                                body = document.getElementsByTagName( "body" )[ 0 ];
                        Severity: Minor
                        Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

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

                              def __init__(self, fisica, pilas, x, y, radio, dinamica=True,
                          Severity: Major
                          Found in pilasengine/fisica/circulo.py - About 1 hr to fix

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

                                def Rectangulo(self, x=0, y=0, ancho=50, alto=20, dinamica=True, densidad=1.0,
                            Severity: Major
                            Found in pilasengine/fisica/__init__.py - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language