Showing 1,896 of 2,859 total issues
Function RunSuites
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BenchmarkSuite.RunSuites = function(runner) {
var continuation = null;
var suites = BenchmarkSuite.suites;
var length = suites.length;
BenchmarkSuite.scores = [];
Function projectionTest
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function projectionTest(n) {
planner = new Planner();
var scale = new Variable("scale", 10);
var offset = new Variable("offset", 1000);
var src = null, dst = null;
Function getDoc
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDoc (project, cb) {
project = project || "."
var package = path.resolve(npm.localPrefix, "package.json")
if (project === "." || project === "./") {
Function asmClick
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function asmClick(element) {
if (element == selectedAsm) return;
if (selectedAsm != null) {
selectedAsm.classList.remove('highlight-yellow');
}
Function gotProject
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function gotProject (project, version, publishConfig, cb_) {
if (typeof cb_ !== 'function') {
cb_ = publishConfig
publishConfig = null
}
Function localLink
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function localLink (target, where, context, cb) {
log.verbose("localLink", target._id)
var jsonPath = path.resolve(npm.globalDir, target.name , 'package.json')
var parent = context.parent
Function readPassword
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readPassword (c, u, cb) {
var v = userValidate.pw
var prompt
if (c.p && !c.changed) {
Function tryClone
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tryClone (from, combinedURL, silent, cb) {
log.silly('tryClone', 'cloning', from, 'via', combinedURL)
var normalized = normalizeGitUrl(combinedURL)
var cloneURL = normalized.url
Function WriteSpec
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def WriteSpec(self, spec, config_name, generator_flags):
"""The main entry point for NinjaWriter: write the build rules for a spec.
Returns a Target object, which represents the output paths for this spec.
Returns None if there are no outputs (e.g. a settings-only 'none' type
Consider simplifying this complex logical expression. Open
Open
} else if (parts = functionKeyCodeRe.exec(s)) {
// ansi escape sequence
// reassemble the key code leaving out leading \x1b's,
// the modifier key bitflag and any meaningless "1;" sequence
Consider simplifying this complex logical expression. Open
Open
if (isWindows) {
return process.env.TEMP ||
process.env.TMP ||
(process.env.SystemRoot || process.env.windir) + '\\temp';
} else {
Consider simplifying this complex logical expression. Open
Open
if (!hostlessProtocol[proto] &&
(slashes || (proto && !slashedProtocol[proto]))) {
// there's a hostname.
// the first instance of /, ?, ;, or # ends the host.
Function RSASetPrivateEx
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function RSASetPrivateEx(N,E,D,P,Q,DP,DQ,C) {
Function shouldUpdate
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function shouldUpdate (args, dir, dep, has, req, depth, cb, type) {
Function Code
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Code(name, kind, sourceBegin, sourceEnd, asmBegin, asmEnd,
firstSourcePosition, startAddress) {
Function unpack
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function unpack (pkg, ver, unpackTarget, dMode, fMode, uid, gid, cb) {
Function runCmd
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function runCmd (note, cmd, pkg, env, stage, wd, unsafe, cb) {
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, parser, serializer, name, default, help_string,
Consider simplifying this complex logical expression. Open
Open
if type == Type.START_BLOCK:
self._block_depth += 1
# Subclasses need to handle block start very differently because
# whether a block is a CODE or OBJECT_LITERAL block varies significantly
Consider simplifying this complex logical expression. Open
Open
if (self._last_code.type in (TokenType.END_PAREN,
TokenType.END_PARAMETERS) or
self._last_code.IsKeyword('else') or
self._last_code.IsKeyword('do') or
self._last_code.IsKeyword('try') or