alxndr/lyrem-ipsum

View on GitHub

Showing 154 of 154 total issues

File jquery.js has 6160 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v2.1.1
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in lib/assets/javascripts/jquery.js - About 2 wks to fix

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

    (function( window ) {
    
    var i,
        support,
        Expr,
    Severity: Major
    Found in lib/assets/javascripts/jquery.js - About 6 days to fix

      File underscore.js has 1004 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      //     Underscore.js 1.7.0
      //     http://underscorejs.org
      //     (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
      //     Underscore may be freely distributed under the MIT license.
      
      
      Severity: Major
      Found in lib/assets/javascripts/underscore.js - About 2 days to fix

        File backbone.js has 956 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        //     Backbone.js 1.1.2
        
        //     (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
        //     Backbone may be freely distributed under the MIT license.
        //     For all details and documentation:
        Severity: Major
        Found in lib/assets/javascripts/backbone.js - About 2 days to fix

          Function ajax has 240 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;
          Severity: Major
          Found in lib/assets/javascripts/jquery.js - About 1 day to fix

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

            setDocument = Sizzle.setDocument = function( node ) {
                var hasCompare,
                    doc = node ? node.ownerDocument || node : preferredDoc,
                    parent = doc.defaultView;
            
            
            Severity: Major
            Found in lib/assets/javascripts/jquery.js - About 1 day to fix

              Function Callbacks has 128 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" ?
              Severity: Major
              Found in lib/assets/javascripts/jquery.js - About 5 hrs to fix

                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;
                
                
                Severity: Critical
                Found in lib/assets/javascripts/jquery.js - About 5 hrs to fix

                  Function defaultPrefilter has 99 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 = {},
                  Severity: Major
                  Found in lib/assets/javascripts/jquery.js - About 3 hrs to fix

                    Function trigger has 85 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        trigger: function( event, data, elem, onlyHandlers ) {
                    
                            var i, cur, tmp, bubbleType, ontype, handle, special,
                                eventPath = [ elem || document ],
                                type = hasOwn.call( event, "type" ) ? event.type : event,
                    Severity: Major
                    Found in lib/assets/javascripts/jquery.js - About 3 hrs to fix

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

                      function Animation( elem, properties, options ) {
                          var result,
                              stopped,
                              index = 0,
                              length = animationPrefilters.length,
                      Severity: Major
                      Found in lib/assets/javascripts/jquery.js - About 3 hrs to fix

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            if (iteratee == null && obj != null) {
                              obj = obj.length === +obj.length ? obj : _.values(obj);
                              for (var i = 0, length = obj.length; i < length; i++) {
                                value = obj[i];
                                if (value > result) {
                        Severity: Major
                        Found in lib/assets/javascripts/underscore.js and 1 other location - About 3 hrs to fix
                        lib/assets/javascripts/underscore.js on lines 291..308

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 100.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            if (iteratee == null && obj != null) {
                              obj = obj.length === +obj.length ? obj : _.values(obj);
                              for (var i = 0, length = obj.length; i < length; i++) {
                                value = obj[i];
                                if (value < result) {
                        Severity: Major
                        Found in lib/assets/javascripts/underscore.js and 1 other location - About 3 hrs to fix
                        lib/assets/javascripts/underscore.js on lines 266..283

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 100.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

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

                        function Sizzle( selector, context, results, seed ) {
                            var match, elem, m, nodeType,
                                // QSA vars
                                i, groups, old, nid, newContext, newSelector;
                        
                        
                        Severity: Major
                        Found in lib/assets/javascripts/jquery.js - About 3 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 lib/assets/javascripts/jquery.js - About 2 hrs to fix

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

                                add: function( elem, types, handler, data, selector ) {
                            
                                    var handleObjIn, eventHandle, tmp,
                                        events, t, handleObj,
                                        special, handlers, type, namespaces, origType,
                            Severity: Major
                            Found in lib/assets/javascripts/jquery.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 lib/assets/javascripts/jquery.js - About 2 hrs to fix

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

                                    set: function(models, options) {
                                      options = _.defaults({}, options, setOptions);
                                      if (options.parse) models = this.parse(models, options);
                                      var singular = !_.isArray(models);
                                      models = singular ? (models ? [models] : []) : _.clone(models);
                                Severity: Major
                                Found in lib/assets/javascripts/backbone.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 lib/assets/javascripts/jquery.js - About 2 hrs to fix

                                    Function superMatcher has 61 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: Major
                                    Found in lib/assets/javascripts/jquery.js - About 2 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language