Showing 1,896 of 2,859 total issues
Function pump
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.pump = exports.deprecate(function(readStream, writeStream, callback) {
var callbackCalled = false;
function call(a, b, c) {
if (callback && !callbackCalled) {
Function renegotiate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TLSSocket.prototype.renegotiate = function(options, callback) {
var requestCert = this._requestCert,
rejectUnauthorized = this._rejectUnauthorized;
if (typeof options.requestCert !== 'undefined')
Function GetCompletions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function GetCompletions(global, last, full) {
var full_tokens = full.split();
full = full_tokens.pop();
var parts = full.split('.');
parts.pop();
Function formatScope_
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatScope_(scope) {
var result = '';
var index = scope.index;
result += '#' + (index <= 9 ? '0' : '') + index;
result += ' ';
Function bnToString
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bnToString(b) {
var this_array = this.array;
if(this.s < 0) return "-"+this.negate().toString(b);
var k;
if(b == 16) k = 4;
Function cleanup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cleanup (data) {
if (Array.isArray(data)) {
if (data.length === 1) {
data = data[0]
} else {
Function completion
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
runScript.completion = function (opts, cb) {
// see if there's already a package specified.
var argv = opts.conf.argv.remain
Function viewMan
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function viewMan (man, cb) {
var nre = /([0-9]+)$/
var num = man.match(nre)[1]
var section = path.basename(man, "." + num)
Function linkBins
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function linkBins (pkg, folder, parent, gtop, cb) {
if (!pkg.bin || !gtop && path.basename(parent) !== "node_modules") {
return cb()
}
var binRoot = gtop ? npm.globalBin
Function fetchAndShaCheck
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetchAndShaCheck (u, tmp, shasum, auth, cb) {
npm.registry.fetch(u, { auth : auth }, function (er, response) {
if (er) {
log.error("fetch failed", u)
return cb(er, response)
Function mirrorRemote
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mirrorRemote (from, cloneURL, treeish, cachedRemote, silent, cb) {
mkdir(cachedRemote, function (er) {
if (er) return cb(er)
var args = [
Function _GenerateMSVSProject
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _GenerateMSVSProject(project, options, version, generator_flags):
"""Generates a .vcproj file. It may create .rules and .user files too.
Arguments:
project: The project object we will generate the file for.
Function BuildOptions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def BuildOptions():
result = optparse.OptionParser()
result.add_option("--arch",
help=("The architecture to run tests for, "
"'auto' or 'native' for auto-detect"),
Function normalizeExecArgs
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function normalizeExecArgs(command /*, options, callback */) {
var file, args, options, callback;
if (util.isFunction(arguments[1])) {
options = undefined;
Function _resolveLookupPaths
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Module._resolveLookupPaths = function(request, parent) {
if (NativeModule.exists(request)) {
return [request, []];
}
Function SocketListReceive
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SocketListReceive(slave, key) {
EventEmitter.call(this);
var self = this;
Function rr
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function rr(message, cb) {
if (message.errno)
return cb(message.errno, null);
var key = message.key;
Function gcToJSONRequest_
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DebugRequest.prototype.gcToJSONRequest_ = function(args) {
var request;
if (!args) {
args = 'all';
}
Function intersect
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
intersect: function(ray){
var info = new Flog.RayTracer.IntersectionInfo();
var Vd = this.position.dot(ray.direction);
if(Vd == 0) return info; // no intersection
Function sc_toWriteCircleString
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sc_Vector.prototype.sc_toWriteCircleString = function(symb) {
if (this[symb + "use"]) { // use-flag is set. Just use it.
var nb = this[symb + "nb"];
if (this[symb]-- === 0) { // if we are the last use. remove all fields.
delete this[symb];