phadej/menrva

View on GitHub

Showing 363 of 363 total issues

Function AutoDetachObserver has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var AutoDetachObserver = (function (_super) {
        inherits(AutoDetachObserver, _super);

        function AutoDetachObserver(observer) {
            _super.call(this);
Severity: Minor
Found in lib/rx.lite.js - About 1 hr to fix

    Function combineLatest has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var combineLatest = Observable.combineLatest = function () {
        var args = slice.call(arguments), resultSelector = args.pop();
        
        if (Array.isArray(args[0])) {
          args = args[0];
    Severity: Minor
    Found in lib/rx.lite.js - About 1 hr to fix

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

      select = Sizzle.select = function( selector, context, results, seed ) {
          var i, tokens, token, type, find,
              compiled = typeof selector === "function" && selector,
              match = !seed && tokenize( (selector = compiled.selector || selector) );
      
      
      Severity: Minor
      Found in lib/jquery.js - About 1 hr to fix

        Function delayWithSelector has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            observableProto.delayWithSelector = function (subscriptionDelay, delayDurationSelector) {
                var source = this, subDelay, selector;
                if (typeof subscriptionDelay === 'function') {
                    selector = subscriptionDelay;
                } else {
        Severity: Minor
        Found in lib/rx.lite.js - About 1 hr to fix

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

                if (typeof isShallow != 'boolean' && isShallow != null) {
                  thisArg = callback;
                  callback = (typeof isShallow != 'function' && thisArg && thisArg[isShallow] === array) ? null : isShallow;
                  isShallow = false;
                }
          Severity: Major
          Found in lib/lodash.js and 1 other location - About 1 hr to fix
          lib/lodash.js on lines 4984..4988

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

          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

          Lens.prototype.set = function (tx, value) {
            var path = this.path;
            this.parents[0].modify(tx, function (obj) {
              return util.setPath(obj, path, value);
            });
          Severity: Major
          Found in src/lens.js and 1 other location - About 1 hr to fix
          src/lens.js on lines 62..67

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

          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

          Lens.prototype.modify = function (tx, f) {
            var path = this.path;
            this.parents[0].modify(tx, function (obj) {
              return util.modifyPath(obj, path, f);
            });
          Severity: Major
          Found in src/lens.js and 1 other location - About 1 hr to fix
          src/lens.js on lines 55..60

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

          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 (typeof isSorted != 'boolean' && isSorted != null) {
                  thisArg = callback;
                  callback = (typeof isSorted != 'function' && thisArg && thisArg[isSorted] === array) ? null : isSorted;
                  isSorted = false;
                }
          Severity: Major
          Found in lib/lodash.js and 1 other location - About 1 hr to fix
          lib/lodash.js on lines 4364..4368

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

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

              EventStream.prototype.toProperty = function(initValue_) {
                var disp, initValue;
                initValue = arguments.length === 0 ? None : toOption(function() {
                  return initValue_;
                });
          Severity: Minor
          Found in lib/Bacon.js - About 1 hr to fix

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

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

              Function baseMerge has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function baseMerge(object, source, callback, stackA, stackB) {
                    (isArray(source) ? forEach : forOwn)(source, function(source, key) {
                      var found,
                          isArr,
                          result = source,
              Severity: Minor
              Found in lib/lodash.js - About 1 hr to fix

                Function createWrapper has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
                      var isBind = bitmask & 1,
                          isBindKey = bitmask & 2,
                          isCurry = bitmask & 4,
                          isCurryBound = bitmask & 8,
                Severity: Minor
                Found in lib/lodash.js - About 1 hr to fix

                  Function zip has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    observableProto.zip = function () {
                      if (Array.isArray(arguments[0])) {
                        return zipArray.apply(this, arguments);
                      }
                      var parent = this, sources = slice.call(arguments), resultSelector = sources.pop();
                  Severity: Minor
                  Found in lib/rx.lite.js - About 1 hr to fix

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

                                    event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
                    Severity: Major
                    Found in lib/jquery.js and 1 other location - About 1 hr to fix
                    lib/jquery.js on lines 4505..4505

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

                    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

                                    event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
                    Severity: Major
                    Found in lib/jquery.js and 1 other location - About 1 hr to fix
                    lib/jquery.js on lines 4506..4506

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

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

                      Enumerable.prototype.catchException = function () {
                        var sources = this;
                        return new AnonymousObservable(function (observer) {
                          var e;
                          try {
                    Severity: Minor
                    Found in lib/rx.lite.js - About 1 hr to fix

                      Function matcherFromTokens has 44 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 lib/jquery.js - About 1 hr to fix

                        Function intersection has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function intersection() {
                              var args = [],
                                  argsIndex = -1,
                                  argsLength = arguments.length,
                                  caches = getArray(),
                        Severity: Minor
                        Found in lib/lodash.js - About 1 hr to fix

                          Function throttleWithSelector has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              observableProto.throttleWithSelector = function (throttleDurationSelector) {
                                  var source = this;
                                  return new AnonymousObservable(function (observer) {
                                      var value, hasValue = false, cancelable = new SerialDisposable(), id = 0, subscription = source.subscribe(function (x) {
                                          var throttle;
                          Severity: Minor
                          Found in lib/rx.lite.js - About 1 hr to fix

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

                                var ConnectableObservable = Rx.ConnectableObservable = (function (_super) {
                                    inherits(ConnectableObservable, _super);
                            
                                    /**
                                     * @constructor
                            Severity: Minor
                            Found in lib/rx.lite.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language