phodal/diaonan

View on GitHub

Showing 150 of 191 total issues

Function start has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

start = module.exports.start = function (opts, callback) {
    var countDone, done;
    if (opts === null || opts === undefined) {
        opts = {};
    }
Severity: Minor
Found in diaonan.js - About 1 hr to fix

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

      , show: function () {
          var $tip
            , inside
            , pos
            , actualWidth
    Severity: Minor
    Found in app/assets/js/bootstrap/bootstrap-tooltip.js - About 1 hr to fix

      Function ajaxHandleResponses has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function ajaxHandleResponses( s, jqXHR, responses ) {
      
          var ct, type, finalDataType, firstDataType,
              contents = s.contents,
              dataTypes = s.dataTypes,
      Severity: Minor
      Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

        Function matcherFromTokens has 42 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 app/assets/js/jquery-1.8.2.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                      if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                          ( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
                          ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                          !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
          
          
          Severity: Critical
          Found in app/assets/js/jquery-1.8.2.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 app/assets/js/jquery-1.8.2.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 app/assets/js/jquery-1.8.2.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 app/assets/js/jquery-1.8.2.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 app/assets/js/jquery-1.8.2.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 app/assets/js/jquery-1.8.2.js - About 1 hr to fix

                      Function tokenize has 39 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 ];
                      
                          if ( cached ) {
                      Severity: Minor
                      Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

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

                        next:function () {
                                if (this.done) {
                                    return this.EOF;
                                }
                                if (!this._input) this.done = true;
                        Severity: Minor
                        Found in app/assets/js/jsonlint.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 app/assets/js/jquery-1.8.2.js - About 1 hr to fix

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

                                Data.find = function (pattern, callback) {
                                    var foundRecord;
                                    foundRecord = function (key) {
                                        return app.redis.client.get(buildKey(key), function (err, value) {
                                            if (err) {
                            Severity: Minor
                            Found in app/models/data.js - About 1 hr to fix

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

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

                                Function when has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    when: function( subordinate /* , ..., subordinateN */ ) {
                                        var i = 0,
                                            resolveValues = core_slice.call( arguments ),
                                            length = resolveValues.length,
                                
                                
                                Severity: Minor
                                Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

                                  Function attr has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      attr: function( elem, name, value, pass ) {
                                          var ret, hooks, notxml,
                                              nType = elem.nodeType;
                                  
                                          // don't get/set attributes on text, comment and attribute nodes
                                  Severity: Minor
                                  Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

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

                                        each: function( obj, callback, args ) {
                                            var name,
                                                i = 0,
                                                length = obj.length,
                                                isObj = length === undefined || jQuery.isFunction( obj );
                                    Severity: Minor
                                    Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

                                      Function access has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                                              var exec,
                                                  bulk = key == null,
                                                  i = 0,
                                                  length = elems.length;
                                      Severity: Minor
                                      Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix

                                        Function cleanData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            cleanData: function( elems, /* internal */ acceptData ) {
                                                var data, id, elem, type,
                                                    i = 0,
                                                    internalKey = jQuery.expando,
                                                    cache = jQuery.cache,
                                        Severity: Minor
                                        Found in app/assets/js/jquery-1.8.2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language