Showing 3,294 of 3,294 total issues
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 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') {
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 _determineButtonType
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_determineButtonType: function() {
var ancestor, labelSelector, checked;
if ( this.element.is("[type=checkbox]") ) {
this.type = "checkbox";
Function _bind
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_bind: function( element, handlers ) {
// no element argument, shuffle and use this.element
if ( !handlers ) {
handlers = element;
element = this.element;
Function _destroy
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
// destroy (sub)menus
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).andSelf()
Function cancel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancel: function() {
if(this.dragging) {
this._mouseUp({ target: null });
Function cloneFixAttributes
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cloneFixAttributes( src, dest ) {
var nodeName;
// We do not need to do anything for non-Elements
if ( dest.nodeType !== 1 ) {
Function dirCheck
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
for ( var i = 0, l = checkSet.length; i < l; i++ ) {
var elem = checkSet[i];
if ( elem ) {
Function _isWatched
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystemEntry.prototype._isWatched = function (relaxed) {
var watchedRoot = this._watchedRoot,
filterResult = this._watchedRootFilterResult;
if (!watchedRoot) {
Function _bindColorFormatToRadioButton
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ColorEditor.prototype._bindColorFormatToRadioButton = function (buttonClass, propertyName, value) {
var handler,
self = this;
handler = function (event) {
var newFormat = $(event.currentTarget).html().toLowerCase().replace("%", "p"),
Function insertHint
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SpecialCharHints.prototype.insertHint = function (completion) {
var start = {line: -1, ch: -1},
end = {line: -1, ch: -1},
cursor = this.editor.getCursorPos(),
line = this.editor.document.getLine(cursor.line),
Function doInParallel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doInParallel(items, beginProcessItem, failFast) {
var promises = [];
var masterDeferred = new $.Deferred();
if (items.length === 0) {
Function _isFilePathVisible
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _isFilePathVisible(treeData, path) {
if (path === null) {
return null;
} else if (path === "") {
return true;
Function findSpecialCharacters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function findSpecialCharacters(str) {
var i, c;
// the beginning of the string is always special
var specials = [0];
Function doCreate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doCreate(path, isFolder) {
var d = new $.Deferred();
var filename = FileUtils.getBaseName(path);
// Check if filename