Moogsoft/node-moog

View on GitHub

Showing 81 of 81 total issues

Function highlightRecursive has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            highlightNode: function highlightRecursive(node) {
                var match,
                    languageId,
                    currentNodeCount,
                    j,
Severity: Major
Found in doc/scripts/sunlight.js - About 2 hrs to fix

    Function D has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function D(a, m) {
        function e(a) {
          switch (a.nodeType) {
          case 1:
            if (k.test(a.className)) break;
    Severity: Major
    Found in doc/scripts/prettify/prettify.js - About 2 hrs to fix

      Function x has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function x(a, m) {
          function e(a) {
            for (var l = a.d, p = [l, "pln"], d = 0, g = a.a.match(y) || [], r = {}, n = 0, z = g.length; n < z; ++n) {
              var f = g[n],
                  b = r[f],
      Severity: Major
      Found in doc/scripts/prettify/prettify.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                if (myEvent instanceof Array) {
                    event.events = myEvent;
                    debug('Event array length ' + event.events.length);
                } else {
                    if (!(mEvent instanceof self.MoogEvent)) {
        Severity: Critical
        Found in lib/node-moog.js - About 2 hrs to fix

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

            p.is = function(what) {
              var ip = false;
              var ip4 = false;
              var ip6 = false;
              var name = false;
          Severity: Minor
          Found in doc/scripts/URI.js - About 1 hr to fix

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

              p.normalizePath = function(build) {
                if (this._parts.urn) {
                  return this;
                }
                if (!this._parts.path || this._parts.path === '/') {
            Severity: Minor
            Found in doc/scripts/URI.js - About 1 hr to fix

              Function relativeTo has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                p.relativeTo = function(base) {
                  var relative = this.clone();
                  var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
                  var common, _base, _this, _base_diff, _this_diff;
                  if (this._parts.urn) {
              Severity: Minor
              Found in doc/scripts/URI.js - About 1 hr to fix

                Function segment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  p.segment = function(segment, v, build) {
                    var separator = this._parts.urn ? ':' : '/';
                    var path = this.path();
                    var absolute = path.substring(0, 1) === '/';
                    var segments = path.split(separator);
                Severity: Minor
                Found in doc/scripts/URI.js - About 1 hr to fix

                  Function getScopeReaderFunction has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function getScopeReaderFunction(scope, tokenName) {
                              var escapeSequences = scope[2] || [],
                                  closerLength = scope[1].length,
                                  closer = typeof(scope[1]) === "string" ? new RegExp(regexEscape(scope[1])) : scope[1].regex,
                                  zeroWidth = scope[3] || false;
                  Severity: Minor
                  Found in doc/scripts/sunlight.js - About 1 hr to fix

                    Function prettyPrint has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      window.prettyPrint = function(a) {
                        function m() {
                          for (var e = window.PR_SHOULD_USE_CONTINUATION ? l.now() + 250 : Infinity; p < h.length && l.now() < e; p++) {
                            var n = h[p],
                                k = n.className;
                    Severity: Minor
                    Found in doc/scripts/prettify/prettify.js - About 1 hr to fix

                      Function suffix has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        p.suffix = function(v, build) {
                          if (this._parts.urn) {
                            return v === undefined ? '' : this;
                          }
                          if (v === undefined || v === true) {
                      Severity: Minor
                      Found in doc/scripts/URI.js - About 1 hr to fix

                        Function createAnalyzerContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function createAnalyzerContext(parserContext, partialContext, options) {
                                    var nodes = [],
                                        prepareText = function() {
                                            var nbsp, tab;
                                            if (options.showWhitespace) {
                        Severity: Minor
                        Found in doc/scripts/sunlight.js - About 1 hr to fix

                          Function parse has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            URI.parse = function(string, parts) {
                              var pos, t;
                              if (!parts) {
                                parts = {};
                              }
                          Severity: Minor
                          Found in doc/scripts/URI.js - About 1 hr to fix

                            Function tld has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              p.tld = function(v, build) {
                                if (this._parts.urn) {
                                  return v === undefined ? '' : this;
                                }
                                if (typeof v === 'boolean') {
                            Severity: Minor
                            Found in doc/scripts/URI.js - About 1 hr to fix

                              Function analyze has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function analyze(analyzerContext, startIndex) {
                                          var nodes,
                                              lastIndex,
                                              container,
                                              i,
                              Severity: Minor
                              Found in doc/scripts/sunlight.js - About 1 hr to fix

                                Function createBetweenRule has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function createBetweenRule(startIndex, opener, closer, caseInsensitive) {
                                        return function(tokens) {
                                            var index = startIndex,
                                                token,
                                                success = false;
                                Severity: Minor
                                Found in doc/scripts/sunlight.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                          if (/\\[bdsw]/i.test(j)) a.push(j);
                                          else {
                                            var j = m(j),
                                                d;
                                            c + 2 < i && "-" === f[c + 1] ? (d = m(f[c + 2]), c += 2) : d = j;
                                  Severity: Critical
                                  Found in doc/scripts/prettify/prettify.js - About 1 hr to fix

                                    Function directory has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      p.directory = function(v, build) {
                                        if (this._parts.urn) {
                                          return v === undefined ? '' : this;
                                        }
                                        if (v === undefined || v === true) {
                                    Severity: Minor
                                    Found in doc/scripts/URI.js - About 1 hr to fix

                                      Function readable has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        p.readable = function() {
                                          var uri = this.clone();
                                          // removing username, password, because they shouldn't be displayed according to RFC 3986
                                          uri.username("").password("").normalize();
                                          var t = '';
                                      Severity: Minor
                                      Found in doc/scripts/URI.js - About 1 hr to fix

                                        Function e has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function e(a) {
                                              for (var l = a.d, p = [l, "pln"], d = 0, g = a.a.match(y) || [], r = {}, n = 0, z = g.length; n < z; ++n) {
                                                var f = g[n],
                                                    b = r[f],
                                                    o = void 0,
                                        Severity: Minor
                                        Found in doc/scripts/prettify/prettify.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language