Showing 1,485 of 3,294 total issues
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 _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 _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 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 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 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 _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 _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 _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 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 _createNewListItem
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WorkingSetView.prototype._createNewListItem = function (file) {
var self = this,
selectedFile = MainViewManager.getCurrentlyViewedFile(this.paneId),
data = {fullPath: file.fullPath,
name: file.name,
Function openAndSelectDocument
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function openAndSelectDocument(fullPath, fileSelectionFocus, paneId) {
var result,
curDocChangedDueToMe = _curDocChangedDueToMe;
function _getDerivedPaneContext() {
Function PreferencesSystem
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PreferencesSystem(contextBuilder) {
this.contextBuilder = contextBuilder;
this._knownPrefs = {};
this._scopes = {
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
Function handlers
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handlers: function( event, handlers ) {
var i, matches, sel, handleObj,
handlerQueue = [],
delegateCount = handlers.delegateCount,
cur = event.target;
Function attr
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var hooks, ret,
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
Function _saveFileList
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _saveFileList(fileList) {
// Do in serial because doSave shows error UI for each file, and we don't want to stack
// multiple dialogs on top of each other
var userCanceled = false,
filesAfterSave = [];
Function _disableCache
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _disableCache() {
var result = new $.Deferred();
if (brackets.inBrowser) {
result.resolve();