hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

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/api/_static/jquery-1.11.1.js - About 2 hrs to fix

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

        add: function( elem, types, handler, data, selector ) {
    
            var elemData, eventHandle, events,
                t, tns, type, namespaces, handleObj,
                handleObjIn, handlers, special;
    Severity: Major
    Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

      Habilidades has 25 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Habilidades(object):
          """Representa la forma de acceso y construcción de las habilidades.
      
          Esta clase representa el objeto creado por pilas que
          se puede acceder escribiendo ``pilas.habilidades``. Desde aquí
      Severity: Minor
      Found in pilasengine/habilidades/__init__.py - About 2 hrs to fix

        Function setupUi has 70 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            def setupUi(self, Dialog):
                Dialog.setObjectName(_fromUtf8("Dialog"))
                Dialog.resize(500, 300)
                Dialog.setMinimumSize(QtCore.QSize(500, 300))
                self.gridLayout = QtGui.QGridLayout(Dialog)
        Severity: Major
        Found in pilasengine/configuracion/configuracion_base.py - About 2 hrs to fix

          Function matcherFromGroupMatchers has 69 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
              var bySet = setMatchers.length > 0,
                  byElement = elementMatchers.length > 0,
                  superMatcher = function( seed, context, xml, results, expandContext ) {
                      var elem, j, matcher,
          Severity: Major
          Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

            Function $get has 69 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
            
                      var $modal = {};
            
                      function getTemplatePromise(options) {
            Severity: Major
            Found in data/asistente/js/ui-bootstrap-tpls.js - About 2 hrs to fix

              Function performTermsSearch has a Cognitive Complexity of 20 (exceeds 5 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 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 matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                  var bySet = setMatchers.length > 0,
                      byElement = elementMatchers.length > 0,
                      superMatcher = function( seed, context, xml, results, outermost ) {
                          var elem, j, matcher,
              Severity: Major
              Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

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

                    link: function(scope, element, attrs, paginationCtrl) {
                
                      // Setup configuration parameters
                      var maxSize,
                      boundaryLinks  = paginationCtrl.getAttributeValue(attrs.boundaryLinks,  config.boundaryLinks      ),
                Severity: Major
                Found in data/asistente/js/ui-bootstrap-tpls.js - About 2 hrs to fix

                  Function _processPattern has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _processPattern(regex, pattern, code, callback)
                      {
                          var match = regex.exec(code);
                  
                          if (!match) {
                  Severity: Major
                  Found in data/asistente/js/rainbow.js - About 2 hrs to fix

                    Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                        var bySet = setMatchers.length > 0,
                            byElement = elementMatchers.length > 0,
                            superMatcher = function( seed, context, xml, results, outermost ) {
                                var elem, j, matcher,
                    Severity: Major
                    Found in data/api/_static/jquery-1.11.1.js - About 2 hrs to fix

                      Function done has 67 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/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                        Function updateRoute has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function updateRoute() {
                              var next = parseRoute(),
                                  last = $route.current;
                        
                              if (next && last && next.$$route === last.$$route
                        Severity: Major
                        Found in data/asistente/js/angular-route.js - About 2 hrs to fix

                          Function done has 67 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/api/_static/jquery-1.11.1.js - About 2 hrs to fix

                            File text.js has 277 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /**
                             * @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
                             * Available via the MIT or new BSD license.
                             * see: http://github.com/requirejs/text for details
                             */
                            Severity: Minor
                            Found in data/manual/mkdocs/js/text.js - About 2 hrs to fix

                              Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                  if ( postFilter && !postFilter[ expando ] ) {
                                      postFilter = setMatcher( postFilter );
                                  }
                                  if ( postFinder && !postFinder[ expando ] ) {
                              Severity: Major
                              Found in data/manual/js/jquery-1.11.1.js - About 2 hrs to fix

                                Function animateRun has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      function animateRun(element, className, activeAnimationComplete) {
                                        var elementData = element.data(NG_ANIMATE_CSS_DATA_KEY);
                                        var node = extractElementNode(element);
                                        if(node.className.indexOf(className) == -1 || !elementData) {
                                          activeAnimationComplete();
                                Severity: Major
                                Found in data/asistente/js/angular-animate.js - About 2 hrs to fix

                                  Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                      if ( postFilter && !postFilter[ expando ] ) {
                                          postFilter = setMatcher( postFilter );
                                      }
                                      if ( postFinder && !postFinder[ expando ] ) {
                                  Severity: Major
                                  Found in data/asistente/js/jquery-1.8.3.js - About 2 hrs to fix

                                    Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                        if ( postFilter && !postFilter[ expando ] ) {
                                            postFilter = setMatcher( postFilter );
                                        }
                                        if ( postFinder && !postFinder[ expando ] ) {
                                    Severity: Major
                                    Found in data/api/_static/jquery-1.11.1.js - About 2 hrs to fix

                                      Function setupUi has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          def setupUi(self, Ejemplos):
                                              Ejemplos.setObjectName(_fromUtf8("Ejemplos"))
                                              Ejemplos.resize(787, 493)
                                              self.gridLayout = QtGui.QGridLayout(Ejemplos)
                                              self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
                                      Severity: Major
                                      Found in pilas/ejemplos/ui.py - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language