phadej/menrva

View on GitHub

Showing 219 of 363 total issues

Function AsyncSubject has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var AsyncSubject = Rx.AsyncSubject = (function (_super) {

        function subscribe(observer) {
            checkDisposed.call(this);
            
Severity: Major
Found in lib/rx.lite.js - About 3 hrs to fix

    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/jquery.js - About 3 hrs to fix

      Function commit has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
      Open

      Transaction.prototype.commit = function () {
      
        // clear timeout
        if (this.commitScheduled) {
          clearTimeout(this.commitScheduled);
      Severity: Minor
      Found in src/transaction.js - About 2 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function BehaviorSubject has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var BehaviorSubject = Rx.BehaviorSubject = (function (_super) {
              function subscribe(observer) {
                  checkDisposed.call(this);
                  if (!this.isStopped) {
                      this.observers.push(observer);
      Severity: Major
      Found in lib/rx.lite.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/jquery.js - About 2 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/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/jquery.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/jquery.js - About 2 hrs to fix

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

                  Bacon.combineTemplate = function(template) {
                    var applyStreamValue, combinator, compile, compileTemplate, constantValue, current, funcs, mkContext, setValue, streams;
                    funcs = [];
                    streams = [];
                    current = function(ctxStack) {
                Severity: Major
                Found in lib/Bacon.js - About 2 hrs to fix

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

                      function baseClone(value, isDeep, callback, stackA, stackB) {
                        if (callback) {
                          var result = callback(value);
                          if (typeof result != 'undefined') {
                            return result;
                  Severity: Major
                  Found in lib/lodash.js - About 2 hrs to fix

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

                        EventStream.prototype.buffer = function(delay, onInput, onFlush) {
                          var buffer, delayMs, reply;
                          if (onInput == null) {
                            onInput = nop;
                          }
                    Severity: Major
                    Found in lib/Bacon.js - About 2 hrs to fix

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

                          var Subject = Rx.Subject = (function (_super) {
                              function subscribe(observer) {
                                  checkDisposed.call(this);
                                  if (!this.isStopped) {
                                      this.observers.push(observer);
                      Severity: Major
                      Found in lib/rx.lite.js - About 2 hrs to fix

                        Function template has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function template(text, data, options) {
                              // based on John Resig's `tmpl` implementation
                              // http://ejohn.org/blog/javascript-micro-templating/
                              // and Laura Doktorova's doT.js
                              // https://github.com/olado/doT
                        Severity: Major
                        Found in lib/lodash.js - About 2 hrs to fix

                          Function PausableBufferedObservable has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            var PausableBufferedObservable = (function (_super) {
                          
                              inherits(PausableBufferedObservable, _super);
                          
                              function subscribe(observer) {
                          Severity: Major
                          Found in lib/rx.lite.js - About 2 hrs to fix

                            Function delay has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                observableProto.delay = function (dueTime, scheduler) {
                                    scheduler || (scheduler = timeoutScheduler);
                                    var source = this;  
                                    return new AnonymousObservable(function (observer) {
                                        var active = false,
                            Severity: Major
                            Found in lib/rx.lite.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/jquery.js - About 2 hrs to fix

                                Function timeoutWithSelector has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    observableProto.timeoutWithSelector = function (firstTimeout, timeoutdurationSelector, other) {
                                        if (arguments.length === 1) {
                                            timeoutdurationSelector = firstTimeout;
                                            var firstTimeout = observableNever();
                                        }
                                Severity: Major
                                Found in lib/rx.lite.js - About 2 hrs to fix

                                  Function CHILD has 59 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";
                                  
                                  
                                  Severity: Major
                                  Found in lib/jquery.js - About 2 hrs to fix

                                    Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        Deferred: function( func ) {
                                            var tuples = [
                                                    // action, add listener, listener list, final state
                                                    [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                                    [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                                    Severity: Major
                                    Found in lib/jquery.js - About 2 hrs to fix

                                      Function ScheduledObserver has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        var ScheduledObserver = Rx.internals.ScheduledObserver = (function (_super) {
                                          inherits(ScheduledObserver, _super);
                                      
                                          function ScheduledObserver(scheduler, observer) {
                                            _super.call(this);
                                      Severity: Major
                                      Found in lib/rx.lite.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language