Showing 517 of 2,859 total issues
Function FluidField
has 285 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FluidField(canvas) {
function addFields(x, s, dt)
{
for (var i=0; i<size ; i++ ) x[i] += dt*s[i];
}
File _tls_legacy.js
has 625 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
File _stream_readable.js
has 608 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
File node.js
has 559 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
Function errorHandler
has 232 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function errorHandler (er) {
// console.error("errorHandler", er)
if (!npm.config || !npm.config.loaded) {
// logging won't work unless we pretend that it's ready
er = er || new Error("Exit prior to config file resolving.")
File util.js
has 551 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
Function masterInit
has 228 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function masterInit() {
cluster.workers = {};
var intercom = new EventEmitter;
cluster.settings = {};
XcodeSettings
has 62 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class XcodeSettings(object):
"""A class that understands the gyp 'xcode_settings' object."""
# Populated lazily by _SdkPath(). Shared by all XcodeSettings, so cached
# at class-level for efficiency.
File cluster.js
has 519 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
File ecmalintrules.py
has 518 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#!/usr/bin/env python
#
# Copyright 2008 The Closure Linter Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
ScriptTest
has 57 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ScriptTest(unittest.TestCase):
def MakeEmptyTempFile(self):
handle, name = tempfile.mkstemp()
os.close(handle)
self._tmp_files.append(name)
File url.js
has 504 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
Function complete
has 200 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
REPLServer.prototype.complete = function(line, callback) {
// There may be local variables to evaluate, try a nested REPL
if (!util.isUndefined(this.bufferedCommand) && this.bufferedCommand.length) {
// Get a new array of inputed lines
var tmp = this.lines.slice();
Function resolveObject
has 199 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Url.prototype.resolveObject = function(relative) {
if (util.isString(relative)) {
var rel = new Url();
rel.parse(relative, false, true);
relative = rel;
Function REPLServer
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) {
if (!(this instanceof REPLServer)) {
return new REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined);
}
Function parse
has 170 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
if (!util.isString(url)) {
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
}
Function nextToken
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sc_Tokenizer.prototype.nextToken = function() {
var port = this.port;
function isNumberChar(c) {
return (c >= "0" && c <= "9");
Function _ttyWrite
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Interface.prototype._ttyWrite = function(s, key) {
key = key || {};
// Ignore escape key - Fixes #2876
if (key.name == 'escape') return;
Function DebugRequest
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DebugRequest(cmd_line) {
// If the very first character is a { assume that a JSON request have been
// entered as a command. Converting that to a JSON request is trivial.
if (cmd_line && cmd_line.length > 0 && cmd_line.charAt(0) == '{') {
this.request_ = cmd_line;
Function sh_highlightString
has 157 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sh_highlightString(inputString, language) {
if (/Konqueror/.test(navigator.userAgent)) {
if (! language.konquered) {
for (var s = 0; s < language.length; s++) {
for (var p = 0; p < language[s].length; p++) {