Showing 297 of 342 total issues
Function start
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
master.start = function () {
verbose('Starting master');
var options = config;
var workerFile = (options._ ? options._[0] : null);
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) {
Consider simplifying this complex logical expression. Open
Open
if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation()))
Consider simplifying this complex logical expression. Open
Open
if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation()))
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 exports
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (function() {
"use strict";
var cluster = master.cluster;
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 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 Deferred
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function(e) {
var t = [
["resolve", "done", v.Callbacks("once memory"), "resolved"],
["reject", "fail", v.Callbacks("once memory"), "rejected"],
["notify", "progress", v.Callbacks("memory")]
Function Deferred
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function(e) {
var t = [
["resolve", "done", v.Callbacks("once memory"), "resolved"],
["reject", "fail", v.Callbacks("once memory"), "rejected"],
["notify", "progress", v.Callbacks("memory")]
Function shutdown
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
master.shutdown = function() {
if (shutdownCalled) {
// this function can only be called once
return;
}
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 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 analyze
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function analyze(analyzerContext, startIndex) {
var nodes,
lastIndex,
container,
i,