Showing 517 of 2,859 total issues
Function run
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function run(args) {
var file = args["file"];
var resx = args["resx"];
var resy = args["resy"];
var distortion = args["distortion"];
Function read
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sc_Reader.prototype.read = function() {
function readList(listBeginType) {
function matchesPeer(open, close) {
return open === 1/*OPEN_PAR*/ && close === 2/*CLOSE_PAR*/
|| open === 3/*OPEN_BRACE*/ && close === 4/*CLOSE_BRACE*/
Function save
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function save (where, installed, tree, pretty, hasArguments, cb) {
if (!hasArguments ||
!npm.config.get("save") &&
!npm.config.get("save-dev") &&
!npm.config.get("save-optional") ||
Function _init
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TLSSocket.prototype._init = function(socket) {
assert(this._handle);
// lib/net.js expect this value to be non-zero if write hasn't been flushed
// immediately
Function readInstalled
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readInstalled (dir, counter, parent, cb) {
var pkg, children, realpath
fs.realpath(dir, function (er, rp) {
realpath = rp
Function write
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function write (target, targetFolder, context, cb_) {
var up = npm.config.get("unsafe-perm")
, user = up ? null : npm.config.get("user")
, group = up ? null : npm.config.get("group")
, family = context.family
Function addNameVersion
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addNameVersion (name, v, data, cb) {
var ver = semver.valid(v, true)
if (!ver) return cb(new Error("Invalid version: "+v))
var response
Function write
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Buffer.prototype.write = function(string, offset, length, encoding) {
// Buffer#write(string);
if (util.isUndefined(offset)) {
encoding = 'utf8';
length = this.length;
Function read
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CryptoStream.prototype._read = function read(size) {
// XXX: EOF?!
if (!this.pair.ssl) return this.push(null);
// Wait for session to be resumed
Function SecurePair
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SecurePair(context, isServer, requestCert, rejectUnauthorized,
options) {
if (!(this instanceof SecurePair)) {
return new SecurePair(context,
isServer,
Function exports
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var server = module.exports = http.createServer(function (req, res) {
if (useDomains) {
var dom = domain.create();
dom.add(req);
dom.add(res);
Function readDependencies
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readDependencies (context, where, opts, cb) {
var wrap = context ? context.wrap : null
var jsonPath = path.resolve(where, 'package.json')
log.verbose('readDependencies', 'loading dependencies from', jsonPath)
Function UIWrapper
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UIWrapper() {
var input_elements = ["range_start",
"range_end",
"distortion",
"start",
Function changeBreakpointCommandToJSONRequest_
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function(args, command) {
var request;
// Check for exception breaks first:
Function send
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Socket.prototype.send = function(buffer,
offset,
length,
port,
address,
Function realpathSync
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fs.realpathSync = function realpathSync(p, cache) {
// make p is absolute
p = pathModule.resolve(p);
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
Function makeArchy_
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeArchy_ (data, long, dir, depth, parent, d) {
if (typeof data === "string") {
if (depth -1 <= npm.config.get("depth")) {
// just missing
var unmet = "UNMET DEPENDENCY"
Function load_
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load_(builtin, rc, cli, cb) {
var defaults = configDefs.defaults
var conf = new Conf(rc)
conf.usingBuiltin = !!builtin
Function client
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function client() {
var chunk;
switch (type) {
case 'buf':
chunk = new Buffer(len);
Function processLine
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processLine(text, begin, end) {
var line = text.substring(begin, end);
if (readingSource) {
if (separatorFilter.exec(line) != null) {
readingSource = false;