Showing 3,294 of 3,294 total issues
Function _createServer
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createServer() {
if (!_wsServer) {
// TODO: make port configurable, or use random port
_wsServer = new WebSocketServer({port: SOCKET_PORT});
_wsServer.on("connection", function (ws) {
Function downloadInstaller
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function downloadInstaller(requester, isInitialAttempt, updateParams) {
updateParams = updateParams || _updateParams;
var currentRequester = requester || "";
try {
var ext = path.extname(updateParams.installerName);
Function _setOption
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var isDraggable, isResizable,
uiDialog = this.uiDialog;
switch ( key ) {
Function _clear
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_clear: function(event, noPropagation) {
this.reverting = false;
// We delay all events that have to be triggered to after the point where the placeholder has been removed and
// everything else normalized again
Function remove
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
t, tns, type, origType, namespaces, origCount,
j, events, special, handle, eventType, handleObj;
Function _createInlineEditor
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createInlineEditor(hostEditor, functionName) {
// Use Tern jump-to-definition helper, if it's available, to find InlineEditor target.
var helper = brackets._jsCodeHintsHelper;
if (helper === null) {
return null;
Function load
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function () {
var result = new $.Deferred();
var path = this.path;
var createIfMissing = this.createIfMissing;
var recreateIfInvalid = this.recreateIfInvalid;
Function _refreshInterface
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
NodeConnection.prototype._refreshInterface = function () {
var deferred = $.Deferred();
var self = this;
var pendingDeferreds = this._pendingInterfaceRefreshDeferreds;
Function _open
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _open(paneId, file, optionsIn) {
var result = new $.Deferred(),
options = optionsIn || {};
function doPostOpenActivation() {
Function domdiff
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domdiff(oldNode, newNode) {
var queue = [],
edits = [],
moves = [],
newElement,
Function showInfoBar
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showInfoBar(msgObj) {
var jsonToMustache = generateJsonForMustache(msgObj),
$infoBarElement = $(Mustache.render(InfoBarHtml, jsonToMustache));
cleanInfoBar(); //Remove an already existing info bar, if any
Consider simplifying this complex logical expression. Open
Open
if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
var c = $(o.containment);
var ce = c[0]; if(!ce) return;
var co = c.offset();
var over = ($(ce).css("overflow") != 'hidden');
Function _mouseCapture
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function( event ) {
var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
that = this,
o = this.options;
Function animateClass
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
return this.queue( function() {
var animated = $( this ),
Consider simplifying this complex logical expression. Open
Open
if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
first.charAt(0) === "<" && !rnocache.test( first ) &&
(jQuery.support.checkClone || !rchecked.test( first )) &&
(jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
Consider simplifying this complex logical expression. Open
Open
if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !namespaces || namespaces.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
eventType.splice( j--, 1 );
Function handleExtractToFunction
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleExtractToFunction() {
var editor = EditorManager.getActiveEditor();
var result = new $.Deferred(); // used only for testing purpose
if (editor.getSelections().length > 1) {
Function _handleRefactor
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _handleRefactor(functionName) {
var eventName, eventType = "";
switch (functionName) {
case REFACTOR_RENAME:
Function step
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
step: function( gotoEnd ) {
var p, n, complete,
t = fxNow || createFxNow(),
done = true,
elem = this.elem,
Function initTypingSpeedLogging
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initTypingSpeedLogging() {
var editor = null,
inputField = null,
inProgress = false;