Showing 3,294 of 3,294 total issues
Function handleSafeToDownload
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleSafeToDownload() {
var downloadFn = function () {
if (isFirstIterationDownload()) {
// For the first iteration of download, show download
//status info in Status bar, and pass download to node
Function _eventHandler
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_eventHandler: function( event ) {
var options = this.options,
active = this.active,
anchor = $( event.currentTarget ),
tab = anchor.closest( "li" ),
Function _animate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_animate: function( toShow, toHide, data ) {
var total, easing, duration,
that = this,
down = toShow.length &&
( !toHide.length || ( toShow.index() < toHide.index() ) ),
Function _toggle
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_toggle: function( event, eventData ) {
var that = this,
toShow = eventData.newPanel,
toHide = eventData.oldPanel,
fx = this._getFx();
Function _slide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_slide: function( event, index, newVal ) {
var otherVal,
newValues,
allowed;
Function access
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
var exec,
bulk = key == null,
i = 0,
length = elems.length;
Function attr
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value, pass ) {
var ret, hooks, notxml,
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
Function _formatBasicPref
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _formatBasicPref(prefItem, prefName, tabIndentStr) {
if (!prefItem || typeof (prefName) !== "string" || _getPrefType(prefItem) === "object") {
// return empty string in case of
// object or pref is not defined.
Function syncOpenDocuments
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function syncOpenDocuments(title) {
title = title || Strings.EXT_MODIFIED_TITLE;
// We can become "re-entrant" if the user leaves & then returns to Brackets before we're
Function _saveViewState
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _saveViewState() {
function _computeSplitPercentage() {
var available,
used;
Function _scrollLine
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _scrollLine(direction) {
var editor = EditorManager.getCurrentFullEditor(),
textHeight = editor.getTextHeight(),
cursorPos = editor.getCursorPos(),
hasSelecction = editor.hasSelection(),
Function _showUpdateNotificationDialog
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _showUpdateNotificationDialog(updates, force) {
Dialogs.showModalDialogUsingTemplate(Mustache.render(UpdateDialogTemplate, Strings))
.done(function (id) {
if (id === Dialogs.DIALOG_BTN_DOWNLOAD) {
HealthLogger.sendAnalyticsData(
Function multiFieldSort
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function multiFieldSort(searchResults, fieldSpec) {
// Move field names into an array, with primary field first
var comparisons;
if (Array.isArray(fieldSpec)) {
comparisons = fieldSpec;
Function getTagAttributes
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTagAttributes(editor, pos) {
var attrs = [],
backwardCtx = TokenUtils.getInitialContext(editor._codeMirror, pos),
forwardCtx = $.extend({}, backwardCtx);
Function setOffset
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
position = jQuery.css( elem, "position" ),
curElem = jQuery( elem ),
props = {};
Function flipFactory
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function flipFactory(iterable) {
var flipSequence = makeSequence(iterable);
flipSequence._iter = iterable;
flipSequence.size = iterable.size;
flipSequence.flip = function() {return iterable};
Function addCommunicationArgs
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addCommunicationArgs(communication, processArgs, isRuntime) {
switch (communication) {
case CommunicationTypes.NodeIPC.type:
{
if (isRuntime) {
Function _showSummary
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SearchResultsView.prototype._showSummary = function () {
var count = this._model.countFilesMatches(),
lastIndex = this._getLastIndex(count.matches),
typeStr = (count.matches > 1) ? Strings.FIND_IN_FILES_MATCHES : Strings.FIND_IN_FILES_MATCH,
filesStr,
Function _render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QuickSearchField.prototype._render = function (results, query) {
this._displayedQuery = query;
this._displayedResults = results;
if (this._firstHighlightIndex >= 0) {
this._highlightIndex = this._firstHighlightIndex;
Function handleContentsModified
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleContentsModified() {
Dialogs.showModalDialog(
DefaultDialogs.DIALOG_ID_ERROR,
Strings.EXT_MODIFIED_TITLE,
StringUtils.format(