Showing 1,896 of 2,859 total issues
Function completion
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
unpublish.completion = function (opts, cb) {
if (opts.conf.argv.remain.length >= 3) return cb()
npm.commands.whoami([], true, function (er, username) {
if (er) return cb()
Function mapToRegistry
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapToRegistry(name, config, cb) {
log.silly("mapToRegistry", "name", name)
var registry
// the name itself takes precedence
Function stars
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stars (args, cb) {
npm.commands.whoami([], true, function (er, username) {
var name = args.length === 1 ? args[0] : username
if (er) {
Function main
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def main(argv=None):
if argv is None:
argv = sys.argv
usage = "gyptest.py [-ahlnq] [-f formats] [test ...]"
Function ProcessOptions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def ProcessOptions(options):
global VARIANT_FLAGS
global VARIANTS
# Architecture and mode related stuff.
Function sh_extractTagsFromNodeList
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sh_extractTagsFromNodeList(nodeList, result) {
var length = nodeList.length;
for (var i = 0; i < length; i++) {
var node = nodeList.item(i);
switch (node.nodeType) {
Function createContext
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
REPLServer.prototype.createContext = function() {
var context;
if (this.useGlobal) {
context = global;
} else {
Function close
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Server.prototype.close = function(cb) {
function onSlaveClose() {
if (--left !== 0) return;
self._connections = 0;
Function watchers
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Interface.prototype.watchers = function() {
var self = this,
verbose = arguments[0] || false,
callback = arguments[1] || function() {},
waiting = this._watchers.length,
Function compare
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compare() {
// each result is an object with {"foo.js arg=bar":12345,...}
// compare each thing, and show which node did the best.
// node[0] is shown in green, node[1] shown in red.
var maxLen = -Infinity;
Function SnapshotLogProcessor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SnapshotLogProcessor() {
LogReader.call(this, {
'code-creation': {
parsers: [null, parseInt, parseInt, parseInt, null, 'var-args'],
processor: this.processCodeCreation },
Function sc_escapeWriteString
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sc_escapeWriteString(s) {
var res = "";
var j = 0;
for (i = 0; i < s.length; i++) {
switch (s.charAt(i)) {
Function _transform
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Client.prototype._transform = function _transform(data, enc, cb) {
cb();
this.buffer += data;
Function filter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function filter (data, args, set, seen) {
if (!set) set = {}
if (!seen) seen = {}
if (set.hasOwnProperty(data.path)) return set
if (seen.hasOwnProperty(data.path)) return set
Function update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update (args, cb) {
npm.commands.outdated(args, true, function (er, outdated) {
if (er) return cb(er)
var wanted = outdated.filter(function (ww) {
Function setCredentialsByURI
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setCredentialsByURI (uri, c) {
assert(uri && typeof uri === "string", "registry URL is required")
assert(c && typeof c === "object", "credentials are required")
var nerfed = toNerfDart(uri)
Function Write
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def Write(self, qualified_target, base_path, output_filename, spec, configs,
part_of_all):
"""The main entry point: writes a .mk file for a single target.
Arguments:
Function GenerateOutput
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def GenerateOutput(target_list, target_dicts, data, params):
options = params['options']
generator_flags = params.get('generator_flags', {})
builddir_name = generator_flags.get('output_dir', 'out')
limit_to_target_all = generator_flags.get('limit_to_target_all', False)
Function Execute
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def Execute(arch, mode, args, options, suites, workspace):
print(">>> Running tests for %s.%s" % (arch, mode))
shell_dir = options.shell_dir
if not shell_dir:
Function Execute
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def Execute(arch, mode, args, options, suites, workspace):
print(">>> Running tests for %s.%s" % (arch, mode))
dist = Distribution(options)