phadej/menrva

View on GitHub

Showing 363 of 363 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/jquery.js - About 2 wks to fix

    Function runInContext has 2277 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function runInContext(context) {
        // Avoid issues with some ES3 environments that attempt to use values, named
        // after built-in constructors like `Object`, for the creation of literals.
        // ES5 clears this up by stating that literals must use built-in constructors.
        // See http://es5.github.io/#x11.1.5.
    Severity: Major
    Found in lib/lodash.js - About 1 wk to fix

      File rx.lite.js has 3735 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
      
      ;(function (undefined) {
      
        var objectTypes = {
      Severity: Major
      Found in lib/rx.lite.js - About 1 wk to fix

        File Bacon.js has 2817 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        (function() {
          var Bacon, BufferingSource, Bus, CompositeUnsubscribe, ConsumingSource, Desc, Dispatcher, End, Error, Event, EventStream, Exception, Initial, Next, None, Observable, Property, PropertyDispatcher, Some, Source, UpdateBarrier, addPropertyInitValueToStream, assert, assertArray, assertEventStream, assertFunction, assertNoArguments, assertString, cloneArray, compositeUnsubscribe, containsDuplicateDeps, convertArgsToFunction, describe, end, eventIdCounter, findDeps, flatMap_, former, idCounter, initial, isArray, isFieldKey, isFunction, isObservable, latter, liftCallback, makeFunction, makeFunctionArgs, makeFunction_, makeObservable, makeSpawner, next, nop, partiallyApplied, recursionDepth, registerObs, spys, toCombinator, toEvent, toFieldExtractor, toFieldKey, toOption, toSimpleExtractor, withDescription, withMethodCallSupport, _, _ref,
            __slice = [].slice,
            __hasProp = {}.hasOwnProperty,
            __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
        Severity: Major
        Found in lib/Bacon.js - About 1 wk to fix

          File lodash.js has 2517 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * @license
           * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
           * Build: `lodash modern -o ./dist/lodash.js`
           * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
          Severity: Major
          Found in lib/lodash.js - About 1 wk 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/jquery.js - About 6 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/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/jquery.js - About 1 day to fix

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

                    Bacon.when = function() {
                      var f, i, index, ix, len, needsBarrier, pat, patSources, pats, patterns, resultStream, s, sources, triggerFound, usage, _i, _j, _len, _len1, _ref1;
                      if (arguments.length === 0) {
                        return Bacon.never();
                      }
                  Severity: Major
                  Found in lib/Bacon.js - About 7 hrs to fix

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

                          if (callback == null && isArray(collection)) {
                            var index = -1,
                                length = collection.length;
                    
                            while (++index < length) {
                    Severity: Major
                    Found in lib/lodash.js and 1 other location - About 6 hrs to fix
                    lib/lodash.js on lines 3643..3665

                    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 172.

                    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 (callback == null && isArray(collection)) {
                            var index = -1,
                                length = collection.length;
                    
                            while (++index < length) {
                    Severity: Major
                    Found in lib/lodash.js and 1 other location - About 6 hrs to fix
                    lib/lodash.js on lines 3568..3590

                    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 172.

                    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

                        observableProto.selectConcat = observableProto.concatMap = function (selector, resultSelector) {
                          if (resultSelector) {
                              return this.concatMap(function (x, i) {
                                var selectorResult = selector(x, i),
                                  result = isPromise(selectorResult) ? observableFromPromise(selectorResult) : selectorResult;
                    Severity: Major
                    Found in lib/rx.lite.js and 1 other location - About 6 hrs to fix
                    lib/rx.lite.js on lines 3145..3162

                    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 157.

                    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

                        observableProto.selectMany = observableProto.flatMap = function (selector, resultSelector) {
                          if (resultSelector) {
                              return this.selectMany(function (x, i) {
                                var selectorResult = selector(x, i),
                                  result = isPromise(selectorResult) ? observableFromPromise(selectorResult) : selectorResult;
                    Severity: Major
                    Found in lib/rx.lite.js and 1 other location - About 6 hrs to fix
                    lib/rx.lite.js on lines 3048..3065

                    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 157.

                    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

                        function concatMapObserver(onNext, onError, onCompleted) {
                          var source = this;
                          return new AnonymousObservable(function (observer) {
                            var index = 0;
                    
                    
                    Severity: Major
                    Found in lib/rx.lite.js and 1 other location - About 5 hrs to fix
                    lib/rx.lite.js on lines 3106..3124

                    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 144.

                    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

                        function selectManyObserver(onNext, onError, onCompleted) {
                          var source = this;
                          return new AnonymousObservable(function (observer) {
                            var index = 0;
                    
                    
                    Severity: Major
                    Found in lib/rx.lite.js and 1 other location - About 5 hrs to fix
                    lib/rx.lite.js on lines 3009..3027

                    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 144.

                    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 Scheduler has 132 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var Scheduler = Rx.Scheduler = (function () {
                    
                            function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) {
                                this.now = now;
                                this._schedule = schedule;
                    Severity: Major
                    Found in lib/rx.lite.js - About 5 hrs 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/jquery.js - About 5 hrs to fix

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

                                    onError: function (exception) {
                                        checkDisposed.call(this);
                                        if (!this.isStopped) {
                                            var os = this.observers.slice(0);
                                            this.isStopped = true;
                        Severity: Major
                        Found in lib/rx.lite.js and 2 other locations - About 5 hrs to fix
                        lib/rx.lite.js on lines 5337..5350
                        lib/rx.lite.js on lines 5486..5499

                        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 137.

                        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 3 locations. Consider refactoring.
                        Open

                                    onError: function (exception) {
                                        checkDisposed.call(this);
                                        if (!this.isStopped) {
                                            var os = this.observers.slice(0);
                                            this.isStopped = true;
                        Severity: Major
                        Found in lib/rx.lite.js and 2 other locations - About 5 hrs to fix
                        lib/rx.lite.js on lines 5202..5214
                        lib/rx.lite.js on lines 5486..5499

                        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 137.

                        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 3 locations. Consider refactoring.
                        Open

                                    onError: function (error) {
                                        checkDisposed.call(this);
                                        if (!this.isStopped) {
                                            var os = this.observers.slice(0);
                                            this.isStopped = true;
                        Severity: Major
                        Found in lib/rx.lite.js and 2 other locations - About 5 hrs to fix
                        lib/rx.lite.js on lines 5202..5214
                        lib/rx.lite.js on lines 5337..5350

                        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 137.

                        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

                        Severity
                        Category
                        Status
                        Source
                        Language