Showing 517 of 2,859 total issues
Function _parseMap
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_parseMap: function(map, lineNumber, columnNumber)
{
var sourceIndex = 0;
var sourceLineNumber = 0;
var sourceColumnNumber = 0;
Function completion
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
owner.completion = function (opts, cb) {
var argv = opts.conf.argv.remain
if (argv.length > 4) return cb()
if (argv.length <= 2) {
var subs = ["add", "rm"]
Function _compile
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Module.prototype._compile = function(content, filename) {
var self = this;
// remove shebang
content = content.replace(/^\#\!.*/, '');
Function spawn
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ChildProcess.prototype.spawn = function(options) {
var self = this,
ipc,
ipcFd,
// If no `stdio` option was given - use default
Function readFileSync
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fs.readFileSync = function(path, options) {
if (!options) {
options = { encoding: null, flag: 'r' };
} else if (util.isString(options)) {
options = { encoding: options, flag: 'r' };
Function completion
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function completion (args, cb) {
if (process.platform === "win32") {
var e = new Error("npm completion not supported on windows")
e.code = "ENOTSUP"
e.errno = require("constants").ENOTSUP
Function mutate
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mutate (pkg, user, mutation, cb) {
if (user) {
var byUser = "-/user/org.couchdb.user:" + user
mapToRegistry(byUser, npm.config, function (er, uri, auth) {
if (er) return cb(er)
Function read
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Readable.prototype.read = function(n) {
debug('read', n);
var state = this._readableState;
var nOrig = n;
Function server
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function server() {
var serverHandle = new TCP();
var err = serverHandle.bind('127.0.0.1', PORT);
if (err)
fail(err, 'bind');
Function runBlock7
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runBlock7() {
for (var i = 0; i < 9; i++) {
'0'.replace(re40, '');
'0'.replace(re10, '');
'0'.replace(re51, '');
Function addLocalDirectory
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addLocalDirectory (p, pkgData, shasum, cb) {
assert(pkgData, "must pass package data")
assert(typeof cb === "function", "must have callback")
// if it's a folder, then read the package.json,
Function load
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load (npm, cli, cb) {
which(process.argv[0], function (er, node) {
if (!er && node.toUpperCase() !== process.execPath.toUpperCase()) {
log.verbose("node symlink", node)
process.execPath = node
Function WriteTarget
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use,
options, generator_flags, all_qualified_targets, output):
# The make generator does this always.
# TODO: It would be nice to be able to tell CMake all dependencies.
Function bind
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Socket.prototype.bind = function(port /*, address, callback*/) {
var self = this;
self._healthCheck();
Function helpCommand_
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DebugRequest.prototype.helpCommand_ = function(args) {
// Help os quite simple.
if (args && args.length > 0) {
print('warning: arguments to \'help\' are ignored');
}
Function runBlock2
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runBlock2() {
for (var i = 0; i < 40; i++) {
s57a[i].replace(re14, '');
s57a[i].replace(re15, '');
}
Function runBlock1
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runBlock1() {
for (var i = 0; i < 81; i++) {
re8.exec(s26[i]);
}
for (var i = 0; i < 78; i++) {
Function getLite
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getLite (data, noname) {
var lite = {}
, maxDepth = npm.config.get("depth")
if (!noname && data.name) lite.name = data.name
Function save
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Conf.prototype.save = function (where, cb) {
var target = this.sources[where]
if (!target || !(target.path || target.source) || !target.data) {
if (where !== "builtin")
var er = new Error("bad save target: " + where)
Function Buffer
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Buffer(subject, encoding) {
if (!util.isBuffer(this))
return new Buffer(subject, encoding);
if (util.isNumber(subject)) {