Showing 1,485 of 3,294 total issues
Function walk
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walk(node) {
if (node.tag) {
var attrText = " data-brackets-id='" + node.tagID + "'";
// If the dom was fully rebuilt, use its offsets. Otherwise, use the marks in the
Function _compareWithBrowser
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
HTMLDocument.prototype._compareWithBrowser = function (change) {
var self = this;
RemoteAgent.call("getSimpleDOM").done(function (res) {
var browserSimpleDOM = JSON.parse(res.result.value),
Function getUserInstalledTheme
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getUserInstalledTheme() {
var result = new $.Deferred();
var installedTheme = themesPref.get("theme"),
bracketsTheme;
Function _addDirectoriesForDuplicateBaseNames
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _addDirectoriesForDuplicateBaseNames() {
var checked = {}, baseName;
// Find duplicates first
$.map(_mrofList, function (value, index) {
baseName = FileUtils.getBaseName(value.file);
Function left
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
Function drag
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function(draggable, event) {
//If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
Function top
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
Function refresh
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
var isDisabled = this.element.is( ":disabled" );
if ( isDisabled !== this.options.disabled ) {
this._setOption( "disabled", isDisabled );
}
Function doFunction
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doFunction(i, statement) {
var f,
oldOption = option,
oldScope = scope;
Function addClass
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addClass: function( value ) {
var classNames, i, l, elem,
setClass, c, cl;
if ( jQuery.isFunction( value ) ) {
Function parseDate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Globalize.parseDate = function( value, formats, culture ) {
culture = this.findClosestCulture( culture );
var date, prop, patterns;
if ( formats ) {
Function setup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup: function() {
if ( rformElems.test( this.nodeName ) ) {
// IE doesn't fire change on a check/radio until blur; trigger it on click
// after a propertychange. Eat the blur-change in special.change.handle.
Function create
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Directory.prototype.create = function (callback) {
callback = callback || function () {};
// Block external change events until after the write has finished
this._fileSystem._beginChange();
Function updateSelectionMarker
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var updateSelectionMarker = function (event, reveal) {
// find the selected list item
var $listItem = $listElement.find(selectedClassName).closest("li");
if (leafClassName) {
Function _lastSegmentSearch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _lastSegmentSearch(query, str, originalQuery, originalStr, specials, startingSpecial, lastSegmentStart) {
var queryCounter, matchList;
// It's possible that the query is longer than the last segment.
// If so, we can chop off the bit that we know couldn't possibly be there.
Function _updateScrollerShadow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _updateScrollerShadow($displayElement, $scrollElement, $shadowTop, $shadowBottom, isPositionFixed) {
var offsetTop = 0,
scrollElement = $scrollElement.get(0),
scrollTop = scrollElement.scrollTop,
topShadowOffset = Math.min(scrollTop - SCROLL_SHADOW_HEIGHT, 0),
Function addMeasurement
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addMeasurement(id) {
if (!enabled) {
return;
}
Function _getFallbackProjectPath
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getFallbackProjectPath() {
var fallbackPaths = [],
recentProjects = PreferencesManager.getViewState("recentProjects") || [],
deferred = new $.Deferred();
Function save
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save: function () {
if (this._saveInProgress) {
if (!this._nextSaveDeferred) {
this._nextSaveDeferred = new $.Deferred();
}
Function _filePathToObjectPath
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _filePathToObjectPath(treeData, path) {
if (path === null) {
return null;
} else if (path === "") {
return [];