Showing 1,485 of 3,294 total issues
Function _showImageTip
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ImageView.prototype._showImageTip = function (e) {
// Don't show image tip if this._scale is close to zero.
// since we won't have enough room to show tip anyway.
if (Math.floor(this._scale) === 0) {
return;
Function _open
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _open(doc) {
if (doc && _liveDocument && doc === _liveDocument.doc) {
if (_server) {
// Launch the URL in the browser. If it's the first one to connect back to us,
// our status will transition to ACTIVE once it does so.
Function plot
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
plot: function (settings) {
var xy = this.bezier.coordinates,
ctx = this.canvas.getContext("2d"),
setting;
Function initiateUpdateProcess
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initiateUpdateProcess(formattedInstallerPath, formattedLogFilePath, installStatusFilePath) {
// Get additional update parameters on Mac : installDir, appName, and updateDir
function getAdditionalParams() {
var retval = {};
Function _tabKeydown
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_tabKeydown: function( event ) {
var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
selectedIndex = this.tabs.index( focusedTab ),
goingForward = true;
Function _loadDefaultPrefs
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _loadDefaultPrefs(prefsPath, deferredPromise) {
var defaultPrefsPath = defaultPreferencesFullPath,
file = FileSystem.getFileForPath(defaultPrefsPath);
Function stop
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( type, clearQueue, gotoEnd ) {
if ( typeof type !== "string" ) {
gotoEnd = clearQueue;
clearQueue = type;
type = undefined;
Function _handleDirectoryChange
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystem.prototype._handleDirectoryChange = function (directory, callback) {
var oldContents = directory._contents;
directory._clearCachedData();
directory.getContents(function (err, contents) {
Function stringMatch
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stringMatch(str, query, options, special) {
var result;
options = options || {};
Function fileClosed
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fileClosed(file) {
if (!file) {
return;
}
var language = LanguageManager.getLanguageForPath(file._path),
Function skipWhileFactory
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipWhileFactory(iterable, predicate, context, useKeys) {
var skipSequence = makeSequence(iterable);
skipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
if (reverse) {
return this.cacheResult().__iterate(fn, reverse);
Function updateResultSet
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateResultSet(editor) {
var cm = editor._codeMirror,
state = getSearchState(cm);
function indicateHasMatches(numResults) {
Function _messageHandler
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BracketsToNodeInterface.prototype._messageHandler = function (evt, params) {
var methodName = params.method,
self = this;
function _getErrorString(err) {
Function exports
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
var common = require("./lib/common")(grunt),
child_process = require("child_process"),
q = require("q"),
qexec = q.denodeify(child_process.exec),
Function loadAgents
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadAgents() {
// If we're already loading agents return same promise
if (_loadAgentsPromise) {
return _loadAgentsPromise;
}
Function formatHints
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatHints(hints, query) {
return hints.map(function (token) {
var $hintObj = $("<span>").addClass("brackets-js-hints");
// level indicates either variable scope or property confidence
Function insertHtmlHint
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UrlCodeHints.prototype.insertHtmlHint = function (completion) {
var cursor = this.editor.getCursorPos(),
start = {line: -1, ch: -1},
end = {line: -1, ch: -1},
tagInfo = HTMLUtils.getTagInfo(this.editor, cursor),
Function _generatePosition
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generatePosition: function(event) {
var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
var pageX = event.pageX;
var pageY = event.pageY;
Function effect
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
effect: function( effect, options, speed, callback ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ],
Function load
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function( url, params, callback ) {
if ( typeof url !== "string" && _load ) {
return _load.apply( this, arguments );
// Don't do a request if no elements are being requested