Moogsoft/node-moog

View on GitHub

Showing 61 of 81 total issues

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

                              Function domain has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                p.domain = 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 defaultNumberParser has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function defaultNumberParser(context) {
                                        var current = context.reader.current(), 
                                            number, 
                                            line = context.reader.getLine(), 
                                            column = context.reader.getColumn(),
                                Severity: Minor
                                Found in doc/scripts/sunlight.js - About 1 hr to fix

                                  Function read has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              read: function(count) {
                                                  var value = getCharacters(count),
                                                      newlineCount,
                                                      lastChar;
                                  
                                  
                                  Severity: Minor
                                  Found in doc/scripts/sunlight.js - About 1 hr to fix

                                    Function registerLanguage has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            registerLanguage: function(languageId, languageData) {
                                                var tokenName,
                                                    embeddedLanguages,
                                                    languageName;
                                                
                                    Severity: Minor
                                    Found in doc/scripts/sunlight.js - About 1 hr to fix

                                      Function absoluteTo has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        p.absoluteTo = function(base) {
                                          var resolved = this.clone();
                                          var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
                                          var basedir, i, p;
                                          if (this._parts.urn) {
                                      Severity: Minor
                                      Found in doc/scripts/URI.js - About 1 hr to fix

                                        Function filename has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          p.filename = 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language