Showing 1,485 of 3,294 total issues
Function initPreferences
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initPreferences(projectRootPath) {
// Reject the old preferences if they have not completed.
if (deferredPreferences && deferredPreferences.state() === "pending") {
deferredPreferences.reject();
Function removeSubMenu
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Menu.prototype.removeSubMenu = function (subMenuID) {
var subMenu,
parentMenuItem,
commandID = "";
Function getModeForSelection
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Editor.prototype.getModeForSelection = function () {
// Check for mixed mode info
var self = this,
sels = this.getSelections(),
primarySel = this.getSelection(),
Function setPayload
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DOMNode.prototype.setPayload = function setPayload(payload) {
this.nodeId = payload.nodeId;
this.type = payload.nodeType;
if (payload.nodeName) {
this.name = payload.nodeName;
Function execColorMatch
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function execColorMatch(editor, line, pos) {
var colorMatch,
ignoreNamedColors;
function hyphenOnMatchBoundary(match, line) {
Function showPreview
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showPreview(editor, popover) {
var token, cm;
// Figure out which editor we are over
if (!editor) {
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 _slide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_slide: function( event, index, newVal ) {
var otherVal,
newValues,
allowed;
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 _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 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 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 _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 _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 _saveViewState
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _saveViewState() {
function _computeSplitPercentage() {
var available,
used;
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 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 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);