Showing 1,485 of 3,294 total issues
Function _call
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _call(objectId, method, varargs) {
console.assert(objectId, "Attempted to call remote method without objectId set.");
var args = Array.prototype.slice.call(arguments, 2),
callback,
deferred = new $.Deferred();
Function _createServer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createServer(socketPort) {
if (!_wsServer) {
// TODO: make port configurable, or use random port
_wsServer = new WebSocketServer({port: socketPort});
_wsServer.on("connection", function (ws) {
Function stepsMatch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stepsMatch(str, lax) {
var match;
// First look for any steps().
match = str.match(STEPS_VALID_REGEX);
Function updateFn
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var updateFn = function () {
var infoObj = {
installerPath: formattedInstallerPath,
logFilePath: formattedLogFilePath,
installStatusFilePath: installStatusFilePath
Function parseInstallerLog
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseInstallerLog(filepath, searchstring, encoding, callback) {
var line = "";
var searchFn = function searchFn(str) {
var arr = str.split('\n'),
lineNum,
Function parse
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StateHandler.prototype.parse = function () {
var result = $.Deferred(),
_file = FileSystem.getFileForPath(this.path);
var self = this;
Function focus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
focus: function( event, item ) {
var nested, focused;
this.blur( event, event && event.type === "focus" );
this._scrollIntoView( item );
Function position
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.position = function( options ) {
if ( !options || !options.offset ) {
return _position.call( this, options );
}
var offset = options.offset.split( " " ),
Function >
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
">": function( checkSet, part ) {
var elem,
isPartStr = typeof part === "string",
i = 0,
l = checkSet.length;
Function fire
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fire = function( context, args ) {
args = args || [];
memory = !flags.memory || [ context, args ];
fired = true;
firing = true;
Function queue
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
queue: function() {
var bad,
test = this;
synchronize(function() {
Function typeOf
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
typeOf: function( obj ) {
var type;
if ( obj === null ) {
type = "null";
} else if ( typeof obj === "undefined" ) {
Function buildFragment
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.buildFragment = function( args, nodes, scripts ) {
var fragment, cacheable, cacheresults, doc,
first = args[ 0 ];
// nodes may contain either an explicit document object,
Function _normalizePath
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystem.prototype._normalizePath = function (path, isDirectory) {
if (!FileSystem.isAbsolutePath(path)) {
throw new Error("Paths must be absolute: '" + path + "'"); // expect only absolute paths
}
Function _handleExternalChange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystem.prototype._handleExternalChange = function (path, stat) {
if (!path) {
// This is a "wholesale" change event; clear all caches
this._index.visitAll(function (entry) {
Function showView
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Pane.prototype.showView = function (view) {
if (this._currentView && this._currentView === view) {
this._setViewVisibility(this._currentView, true);
this.updateLayout(true);
return;
Function renameItem
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileTreeViewModel.prototype.renameItem = function (oldPath, newPath) {
var treeData = this._treeData,
oldObjectPath = _filePathToObjectPath(treeData, oldPath),
newDirectoryPath = FileUtils.getParentPath(newPath),
newObjectPath = _filePathToObjectPath(treeData, newDirectoryPath);
Function setDirectoryContents
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileTreeViewModel.prototype.setDirectoryContents = function (path, contents) {
path = FileUtils.stripTrailingSlash(path);
var intermediate = _createIntermediateDirectories(this._treeData, path),
objectPath = intermediate.objectPath,
Function _createPaneIfNecessary
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createPaneIfNecessary(paneId) {
var newPane;
if (!_panes.hasOwnProperty(paneId)) {
newPane = new Pane(paneId, _$el);
Function _mapError
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _mapError(err) {
if (!err) {
return null;
}