Showing 1,896 of 2,859 total issues
Function completionGroupsLoaded
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function completionGroupsLoaded(err) {
if (err) throw err;
// Filter, sort (within each group), uniq and merge the completion groups.
if (completionGroups.length && filter) {
Function Unwrapper
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Unwrapper() {
var self = this;
Stream.call(this);
this.writable = true;
Function verifyFiles
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function verifyFiles(files, callback) {
var dir = path.resolve(verifyDir, 'doc-' + id++);
files = Object.keys(files).map(function(name) {
return {
Function removeListener
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function removeListener(type, listener) {
var list, position, length, i;
if (!util.isFunction(listener))
throw TypeError('listener must be a function');
Function _listen2
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
debug('listen2', address, port, addressType, backlog);
var self = this;
// If there is not yet a handle, we need to create one and bind.
Function unrefTimeout
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function unrefTimeout() {
var now = Timer.now();
debug('unrefTimer fired');
Function backtraceCommandToJSONRequest_
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DebugRequest.prototype.backtraceCommandToJSONRequest_ = function(args) {
// Build a backtrace request from the text command.
var request = this.createRequest('backtrace');
// Default is to show top 10 frames.
Function main
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function main(conf) {
http = require('http');
var chunk;
var len = conf.kb * 1024;
switch (conf.type) {
Function set_bnd
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function set_bnd(b, x)
{
if (b===1) {
for (var i = 1; i <= width; i++) {
x[i] = x[i + rowSize];
Function checkoutTreeish
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function checkoutTreeish (from, resolvedURL, resolvedTreeish, tmpdir, cb) {
var args = ['checkout', resolvedTreeish]
git.whichAndExec(
args,
{ cwd: tmpdir, env: gitEnv() },
Function readdir
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readdir(name) {
resolveLeft++
fs.readdir(name, function (er, inst) {
if (er) return resolveLeft--
Function get
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get (uri, params, cb) {
assert(typeof uri === "string", "must pass registry URI to get")
assert(params && typeof params === "object", "must pass params to get")
assert(typeof cb === "function", "must pass callback to get")
Function parseSignature
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseSignature(text, sig) {
var params = text.match(paramExpr);
if (!params) return;
params = params[1];
// the [ is irrelevant. ] indicates optionalness.
Function processIncludes
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processIncludes(input, cb) {
var includes = input.match(includeExpr);
if (includes === null) return cb(null, input);
var errState = null;
console.error(includes);
Function exithandler
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function exithandler(code, signal) {
if (exited) return;
exited = true;
if (timeoutId) {
Function objEquiv
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function objEquiv(a, b) {
if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))
return false;
// an identical 'prototype' property.
if (a.prototype !== b.prototype) return false;
Function onread
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onread(nread, buffer) {
var handle = this;
var self = handle.owner;
assert(handle === self._handle, 'handle != self._handle');
Function toString
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Buffer.prototype.toString = function(encoding, start, end) {
var loweredCase = false;
start = start >>> 0;
end = util.isUndefined(end) || end === Infinity ? this.length : end >>> 0;
Function ReadableState
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReadableState(options, stream) {
options = options || {};
// object stream flag. Used to make read(n) ignore n and to
// make all the buffer merging and length checks go away
Function addListener
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EventEmitter.prototype.addListener = function addListener(type, listener) {
var m;
if (!util.isFunction(listener))
throw TypeError('listener must be a function');