Showing 1,485 of 3,294 total issues
Function handleShowPerfData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleShowPerfData() {
var templateVars = {
delimitedPerfData: PerfUtils.getDelimitedPerfData(),
perfData: []
};
Function resolve
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystem.prototype.resolve = function (path, callback) {
var normalizedPath = this._normalizePath(path, false),
item = this._index.getEntry(normalizedPath);
if (!item) {
Function inputChangedHandler
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var inputChangedHandler = function () {
// CodeMirror's fastPoll will batch up input events into a consolidated change
if (inProgress) {
return;
}
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init(paths) {
var params = new UrlParams();
if (_init) {
// Only init once. Return a resolved promise.
Function _tryAddToScopeOrder
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_tryAddToScopeOrder: function (shadowEntry) {
var shadowScopeOrder = this._defaults._shadowScopeOrder,
index = _.findIndex(shadowScopeOrder, function (entry) {
return entry === shadowEntry;
}),
Function _createPlaceholder
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createPlaceholder(treeData, basedir, name, isFolder, options) {
options = options || {};
var parentPath = _filePathToObjectPath(treeData, basedir);
if (!parentPath) {
Function _doJumpToDef
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _doJumpToDef() {
var request = null,
result = new $.Deferred(),
jumpToDefProvider = null,
editor = EditorManager.getActiveEditor();
Function updateList
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateList(list, index, value) {
index = wrapIndex(list, index);
if (index !== index) {
return list;
Function update
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
if (keyHash === undefined) {
keyHash = hash(key);
}
var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
Function next
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MapIterator.prototype.next = function() {
var type = this._type;
var stack = this._stack;
while (stack) {
var node = stack.node;
Function applyPlacement
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, applyPlacement: function(offset, placement){
var $tip = this.tip()
, width = $tip[0].offsetWidth
, height = $tip[0].offsetHeight
, actualWidth
Function insertHint
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CodeHintsProvider.prototype.insertHint = function ($hint) {
var editor = EditorManager.getActiveEditor(),
cursor = editor.getCursorPos(),
token = $hint.data("token"),
txt = null,
Function setData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setData(metadata) {
var locationType,
id = metadata.name,
userExtensionPath = ExtensionLoader.getUserExtensionPath();
if (path.indexOf(userExtensionPath) === 0) {
Function _doInspectorDisconnect
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _doInspectorDisconnect(doCloseWindow) {
var closePromise,
deferred = new $.Deferred(),
connected = Inspector.connected();
Function init
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init() {
_isInitialized = true;
foldCode.init();
foldGutter.init();
Function createList
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createList(list, isDocumentSymbolRequest) {
var newlist = [];
for (var i = 0; i < list.length; i++) {
var symbolInfo = list[i],
label = symbolInfo.name,
Function handleDownloadFailure
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleDownloadFailure(message) {
console.log("AutoUpdate : Download of latest installer failed in Attempt " +
(MAX_DOWNLOAD_ATTEMPTS - downloadAttemptsRemaining) + ".\n Reason : " + message);
if (downloadAttemptsRemaining) {
Function queryInlineAtPos
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function queryInlineAtPos(info, offset, expectInline, expectedProperty) {
var widget = null,
promise;
runs(function () {
Function keydownHook
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keydownHook(event) {
var keyHandled = false;
switch (event.keyCode) {
case KeyEvent.DOM_VK_UP:
Function drag
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(event, ui) {
var i = $(this).data("draggable"), o = i.options, scrolled = false;
if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {