Showing 1,896 of 2,859 total issues
Function Socket
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Socket(options) {
if (!(this instanceof Socket)) return new Socket(options);
this._connecting = false;
this._hadError = false;
Function _destroy
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Socket.prototype._destroy = function(exception, cb) {
debug('destroy');
var self = this;
Function format
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Url.prototype.format = function() {
var auth = this.auth || '';
if (auth) {
auth = encodeURIComponent(auth);
auth = auth.replace(/%3A/i, ':');
Function write
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StringDecoder.prototype.write = function(buffer) {
var charStr = '';
// if our last write ended with an incomplete multibyte character
while (this.charLength) {
// determine how many remaining bytes this buffer has to offer for this char
Function exports
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (args, cb) {
var s = process.platform === "win32" ? " *" : " \u2605"
, f = "\uFF0F"
, b = "\uFF3C"
, x = process.platform === "win32" ? " " : ""
Function plotWorker
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function plotWorker() {
var worker = null;
function initialize() {
ui.freeze();
Function ls
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ls (args, silent, cb) {
if (typeof cb !== "function") cb = silent, silent = false
var dir = path.resolve(npm.dir, "..")
Function installOne_
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function installOne_ (target, where, context, cb_) {
var nm = path.resolve(where, "node_modules")
, targetFolder = path.resolve(nm, target.name)
, prettyWhere = path.relative(process.cwd(), where)
, parent = context.parent
Consider simplifying this complex logical expression. Open
Open
if (keys.length <= 3
&& data.name
&& (keys.length === 1
|| keys.length === 3 && data.email && data.url
|| keys.length === 2 && (data.email || data.url))) {
Consider simplifying this complex logical expression. Open
Open
if token.type != TokenType.SEMICOLON:
next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
# A statement like if (x) does not need a semicolon after it
is_implied_block = self._context == EcmaContext.IMPLIED_BLOCK
is_last_code_in_line = token.IsCode() and (
Consider simplifying this complex logical expression. Open
Open
if (function.has_return and function.doc and
not is_immediately_called and
not function.doc.HasFlag('return') and
not function.doc.InheritsDocumentation() and
not function.doc.HasFlag('constructor')):
Consider simplifying this complex logical expression. Open
Open
if isinstance(other, PBXNativeTarget) and \
'productType' in self._properties and \
self._properties['productType'] != static_library_type and \
'productType' in other._properties and \
(other._properties['productType'] == static_library_type or \
Function setOptions
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Server.prototype.setOptions = function(options) {
if (util.isBoolean(options.requestCert)) {
this.requestCert = options.requestCert;
} else {
this.requestCert = false;
Function onHandle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onHandle() {
if (!legacy)
socket._releaseControl();
if (options.session)
Function formatResults
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatResults (args, results, cb) {
if (!results) return cb(null)
var cols = Math.min(process.stdout.columns || Infinity, 80) + 1
Function addCommand
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Object.keys(abbrevs).concat(plumbing).forEach(function addCommand (c) {
Object.defineProperty(npm.commands, c, { get : function () {
if (!loaded) throw new Error(
"Call npm.load(config, cb) before using this command.\n"+
"See the README.md or cli.js for example usage.")
Function makeCacheDir
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeCacheDir (cb) {
cb = inflight("makeCacheDir", cb)
if (!cb) {
return log.verbose(
"getCacheStat",
Function _GenerateMSBuildProject
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _GenerateMSBuildProject(project, options, version, generator_flags):
spec = project.spec
configurations = spec['configurations']
project_dir, project_file_name = os.path.split(project.path)
gyp.common.EnsureDirExists(project.path)
Function sh_mergeTags
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sh_mergeTags(originalTags, highlightTags) {
var numOriginalTags = originalTags.length;
if (numOriginalTags === 0) {
return highlightTags;
}
Function addTmpTarball
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addTmpTarball (tgz, pkgData, shasum, cb) {
assert(typeof cb === "function", "must have callback function")
assert(shasum, "must have shasum by now")
cb = inflight("addTmpTarball:" + tgz, cb)