shuoyao/BirdGo

View on GitHub

Showing 143 of 169 total issues

File application-b34af937661b1e622cea2d933ff65194efa8c7968c100e4a1364a2a317ea4460.js has 7517 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.12.4
 * http://jquery.com/
 *
 * Includes Sizzle.js

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

    (function( window ) {
    
    var i,
        support,
        Expr,

      Function ajax has 248 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;

        Function setDocument has 218 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        setDocument = Sizzle.setDocument = function( node ) {
            var hasCompare, parent,
                doc = node ? node.ownerDocument || node : preferredDoc;
        
            // Return early if doc is invalid or already selected

          Consider simplifying this complex logical expression.
          Open

                      if ( event.pageX == null && original.clientX != null ) {
                          eventDoc = event.target.ownerDocument || document;
                          doc = eventDoc.documentElement;
                          body = eventDoc.body;
          
          

            Function Callbacks has 121 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jQuery.Callbacks = function( options ) {
            
                // Convert options from String-formatted to Object-formatted if needed
                // (we check in cache first)
                options = typeof options === "string" ?

              Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function defaultPrefilter( elem, props, opts ) {
                  /* jshint validthis: true */
                  var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                      anim = this,
                      orig = {},

                Function trigger has 93 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,

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

                  function Animation( elem, properties, options ) {
                      var result,
                          stopped,
                          index = 0,
                          length = Animation.prefilters.length,

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

                    function Sizzle( selector, context, results, seed ) {
                        var m, i, elem, nid, nidselect, match, groups, newSelector,
                            newContext = context && context.ownerDocument,
                    
                            // nodeType defaults to 9, since context defaults to document

                      Function CHILD has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              "CHILD": function( type, what, argument, first, last ) {
                                  var simple = type.slice( 0, 3 ) !== "nth",
                                      forward = type.slice( -4 ) !== "last",
                                      ofType = what === "of-type";
                      
                      

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

                        function buildFragment( elems, context, scripts, selection, ignored ) {
                            var j, elem, contains,
                                tmp, tag, tbody, wrap,
                                l = elems.length,
                        
                        

                          Function add has 75 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 );

                            Function matcherFromGroupMatchers has 72 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,

                              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

                                Consider simplifying this complex logical expression.
                                Open

                                                        if ( forward && useCache ) {
                                
                                                            // Seek `elem` from a previously-cached index
                                
                                                            // ...in a gzip-friendly way

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

                                                  send: function( headers, complete ) {
                                                      var i,
                                                          xhr = options.xhr(),
                                                          id = ++xhrId;
                                  
                                  

                                    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 ] ) {

                                      Function markTheseData has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function markTheseData(data) {
                                        map = document.map
                                        map.clearOverlays();
                                      
                                        for (var i = 0; i < data.length; i++) {
                                      Severity: Major
                                      Found in app/assets/javascripts/explorer/init_map.js - About 2 hrs to fix

                                        Function superMatcher has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                superMatcher = function( seed, context, xml, results, outermost ) {
                                                    var elem, j, matcher,
                                                        matchedCount = 0,
                                                        i = "0",
                                                        unmatched = seed && [],
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language