Showing 61 of 81 total issues
Function relativeTo
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function segment
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function getScopeReaderFunction
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function prettyPrint
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function suffix
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.suffix = function(v, build) {
if (this._parts.urn) {
return v === undefined ? '' : this;
}
if (v === undefined || v === true) {
Function createAnalyzerContext
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createAnalyzerContext(parserContext, partialContext, options) {
var nodes = [],
prepareText = function() {
var nbsp, tab;
if (options.showWhitespace) {
Function parse
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
URI.parse = function(string, parts) {
var pos, t;
if (!parts) {
parts = {};
}
Function tld
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.tld = function(v, build) {
if (this._parts.urn) {
return v === undefined ? '' : this;
}
if (typeof v === 'boolean') {
Function analyze
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function analyze(analyzerContext, startIndex) {
var nodes,
lastIndex,
container,
i,
Function createBetweenRule
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createBetweenRule(startIndex, opener, closer, caseInsensitive) {
return function(tokens) {
var index = startIndex,
token,
success = false;
Consider simplifying this complex logical expression. Open
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;
Function directory
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.directory = function(v, build) {
if (this._parts.urn) {
return v === undefined ? '' : this;
}
if (v === undefined || v === true) {
Function readable
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 = '';
Function e
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function domain
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.domain = function(v, build) {
if (this._parts.urn) {
return v === undefined ? '' : this;
}
if (typeof v === 'boolean') {
Function defaultNumberParser
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defaultNumberParser(context) {
var current = context.reader.current(),
number,
line = context.reader.getLine(),
column = context.reader.getColumn(),
Function read
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
read: function(count) {
var value = getCharacters(count),
newlineCount,
lastChar;
Function registerLanguage
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerLanguage: function(languageId, languageData) {
var tokenName,
embeddedLanguages,
languageName;
Function absoluteTo
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.absoluteTo = function(base) {
var resolved = this.clone();
var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
var basedir, i, p;
if (this._parts.urn) {
Function filename
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.filename = function(v, build) {
if (this._parts.urn) {
return v === undefined ? '' : this;
}
if (v === undefined || v === true) {