hugoruscitti/pilas

View on GitHub

Showing 1,009 of 1,970 total issues

Consider simplifying this complex logical expression.
Open

if (!jQuery.browser) {
  jQuery.uaMatch = function(ua) {
    ua = ua.toLowerCase();

    var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
Severity: Critical
Found in data/api/_static/doctools.js - About 1 hr to fix

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

      self.select = function(nextSlide, direction) {
        var nextIndex = slides.indexOf(nextSlide);
        //Decide direction if it's not given
        if (direction === undefined) {
          direction = nextIndex > currentIndex ? "next" : "prev";
    Severity: Minor
    Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

      Function val has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          val: function( value ) {
              var hooks, ret, isFunction,
                  elem = this[0];
      
              if ( !arguments.length ) {
      Severity: Minor
      Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

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

        function Sizzle( selector, context, results, seed ) {
            results = results || [];
            context = context || document;
            var match, elem, xml, m,
                nodeType = context.nodeType;
        Severity: Minor
        Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

          Function show has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            Tooltip.prototype.show = function () {
              var e = $.Event('show.bs.'+ this.type)
          
              if (this.hasContent() && this.enabled) {
                this.$element.trigger(e)
          Severity: Minor
          Found in data/asistente/js/bootstrap.js - About 1 hr to fix

            Function iniciar has 13 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def iniciar(self, receptor,
            Severity: Major
            Found in pilasengine/habilidades/disparar.py - About 1 hr to fix

              Function iniciar has 13 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def iniciar(self, receptor,
              Severity: Major
              Found in pilasengine/habilidades/disparar.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/manual/js/jquery-1.11.1.js - About 1 hr to fix

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

                      stop: function( type, clearQueue, gotoEnd ) {
                          var stopQueue = function( hooks ) {
                              var stop = hooks.stop;
                              delete hooks.stop;
                              stop( gotoEnd );
                  Severity: Minor
                  Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

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

                        val: function( value ) {
                            var hooks, ret, isFunction,
                                elem = this[0];
                    
                            if ( !arguments.length ) {
                    Severity: Minor
                    Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

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

                          on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                              var type, origFn;
                      
                              // Types can be a map of types/handlers
                              if ( typeof types === "object" ) {
                      Severity: Minor
                      Found in data/manual/js/jquery-1.11.1.js - About 1 hr to fix

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

                            on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                var origFn, type;
                        
                                // Types can be a map of types/handlers
                                if ( typeof types === "object" ) {
                        Severity: Minor
                        Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

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

                              stop: function( type, clearQueue, gotoEnd ) {
                                  var stopQueue = function( hooks ) {
                                      var stop = hooks.stop;
                                      delete hooks.stop;
                                      stop( gotoEnd );
                          Severity: Minor
                          Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

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

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

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

                                  compile: function(elm, attrs, transclude) {
                                    return function postLink(scope, elm, attrs, tabsetCtrl) {
                                      var getActive, setActive;
                                      if (attrs.active) {
                                        getActive = $parse(attrs.active);
                              Severity: Minor
                              Found in data/asistente/js/ui-bootstrap-tpls.js - 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 options, name, src, copy, copyIsArray, clone,
                                        target = arguments[0] || {},
                                        i = 1,
                                        length = arguments.length,
                                Severity: Minor
                                Found in data/asistente/js/jquery-1.8.3.js - About 1 hr to fix

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

                                    $.fn.comment = function() {
                                      return this.each(function() {
                                        var id = $(this).attr('id').substring(1);
                                        var count = COMMENT_METADATA[id];
                                        var title = count + ' comment' + (count == 1 ? '' : 's');
                                  Severity: Minor
                                  Found in data/api/_static/websupport.js - About 1 hr to fix

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

                                        on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                            var type, origFn;
                                    
                                            // Types can be a map of types/handlers
                                            if ( typeof types === "object" ) {
                                    Severity: Minor
                                    Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                          stop: function( type, clearQueue, gotoEnd ) {
                                              var stopQueue = function( hooks ) {
                                                  var stop = hooks.stop;
                                                  delete hooks.stop;
                                                  stop( gotoEnd );
                                      Severity: Minor
                                      Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                            val: function( value ) {
                                                var hooks, ret, isFunction,
                                                    elem = this[0];
                                        
                                                if ( !arguments.length ) {
                                        Severity: Minor
                                        Found in data/api/_static/jquery-1.11.1.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language