Showing 517 of 2,859 total issues
Function processNextTick
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startup.processNextTick = function() {
var nextTickQueue = [];
var microtasksScheduled = false;
// Used to run V8's micro task queue.
Function outdated_
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function outdated_ (args, dir, parentHas, depth, cb) {
// get the deps from package.json, or {<dir/node_modules/*>:"*"}
// asyncMap over deps:
// shouldHave = cache.add(dep, req).version
// if has === shouldHave then
Function ParagraphParser
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ParagraphParser() {
var self = this,
block_is_license_block = false,
block_has_c_style_comment,
is_first_line_in_paragraph,
Function setBreakpoint
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Interface.prototype.setBreakpoint = function(script, line,
condition, silent) {
if (!this.requireConnection()) return;
var self = this,
Function gentlyRm
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function gentlyRm (target, gently, base, cb) {
if (!cb) {
cb = base
base = undefined
}
Function checkServerIdentity
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.checkServerIdentity = function checkServerIdentity(host, cert) {
// Create regexp to much hostnames
function regexpify(host, wildcards) {
// Add trailing dot (make hostnames uniform)
if (!/\.$/.test(host)) host += '.';
Function doJSON
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doJSON(input, filename, cb) {
var root = {source: filename};
var stack = [root];
var depth = 0;
var current = root;
Function _validateStdio
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _validateStdio(stdio, sync) {
var ipc,
ipcFd;
// Replace shortcut with an array
Function connect
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Socket.prototype.connect = function(options, cb) {
if (this.write !== Socket.prototype.write)
this.write = Socket.prototype.write;
if (!util.isObject(options)) {
Function Interface
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Interface(stdin, stdout, args) {
var self = this;
this.stdin = stdin;
this.stdout = stdout;
Function searchFiles
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function searchFiles (args, files, cb) {
var results = []
Object.keys(files).forEach(function (file) {
var data = files[file]
Function trySpawn
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Interface.prototype.trySpawn = function(cb) {
var self = this,
breakpoints = this.breakpoints || [],
port = exports.port,
host = 'localhost',
Function Server
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Server(/* [options], listener */) {
var options, listener;
if (util.isObject(arguments[0])) {
options = arguments[0];
listener = arguments[1];
Function realpath
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fs.realpath = function realpath(p, cache, cb) {
if (!util.isFunction(cb)) {
cb = maybeCallback(cache);
cache = null;
}
Function runBlock6
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runBlock6() {
for (var i = 0; i < 11; i++) {
s83[i].replace(/##yv0##/gi, '');
s83[i].replace(re57, '');
s84[i].replace(re58, '');
Function shouldUpdate
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function shouldUpdate (args, dir, dep, has, req, depth, cb, type) {
// look up the most recent version.
// if that's what we already have, or if it's not on the args list,
// then dive into it. Otherwise, cb() with the data.
Function startup
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function startup() {
var EventEmitter = NativeModule.require('events').EventEmitter;
process.__proto__ = Object.create(EventEmitter.prototype, {
constructor: {
Function renderScene
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderScene(){
var scene = new Flog.RayTracer.Scene();
scene.camera = new Flog.RayTracer.Camera(
new Flog.RayTracer.Vector(0, 0, -15),
Function _processChunk
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
var availInBefore = chunk && chunk.length;
var availOutBefore = this._chunkSize - this._offset;
var inOff = 0;
Function finishSection
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function finishSection(section, parent) {
if (!section || !parent) {
throw new Error('Invalid finishSection call\n'+
JSON.stringify(section) + '\n' +
JSON.stringify(parent));