Showing 1,485 of 3,294 total issues
File StaticServerDomain.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
File ImageViewer.js
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function explode
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.explode = function( o, done ) {
var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
cells = rows,
el = $( this ),
Function _formatPref
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _formatPref(prefName, prefItem, indentLevel) {
// check for validity of the parameters being passed
if (!prefItem || indentLevel < 0 || !prefName || !prefName.length) {
return "";
Function _visitHelper
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileSystemEntry.prototype._visitHelper = function (stats, visitedPaths, visitor, options, callback) {
var maxDepth = options.maxDepth,
maxEntriesCounter = options.maxEntriesCounter,
sortList = options.sortList;
Function insertHint
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SVGCodeHints.prototype.insertHint = function (completion) {
var tagInfo = this.tagInfo,
pos = this.editor.getCursorPos(),
start = {line: -1, ch: -1},
end = {line: -1, ch: -1},
Function showDialog
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showDialog() {
var currentSettings = getValues();
var newSettings = {};
var themes = _.map(loadedThemes, function (theme) { return theme; });
var template = $("<div>").append($settings).html();
Function CHILD
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, argument, first, last ) {
var simple = type.slice( 0, 3 ) !== "nth",
forward = type.slice( -4 ) !== "last",
ofType = what === "of-type";
Function defineLanguage
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defineLanguage(id, definition) {
var result = new $.Deferred();
if (_pendingLanguages[id]) {
result.reject("Language \"" + id + "\" is waiting to be resolved.");
Function Deferred
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Deferred: function( func ) {
var tuples = [
// action, add listener, listener list, final state
[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
Function _createReaderAndWriteByCommunicationType
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _createReaderAndWriteByCommunicationType(resp, type) {
var retval = null;
switch (type) {
case CommunicationTypes.NodeIPC.type:
File ExtensionManagerView.js
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Consider simplifying this complex logical expression. Open
Open
if ( forward && useCache ) {
// Seek `elem` from a previously-cached index
outerCache = parent[ expando ] || (parent[ expando ] = {});
cache = outerCache[ type ] || [];
nodeIndex = cache[0] === dirruns && cache[1];
Function init
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init(domainManager) {
_domainManager = domainManager;
if (!domainManager.hasDomain("nodeSocketTransport")) {
domainManager.registerDomain("nodeSocketTransport", {major: 0, minor: 1});
}
Function _pointKeyDown
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _pointKeyDown(e) {
var code = e.keyCode,
self = e.target,
bezierEditor = self.bezierEditor;
Function drag
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drag(e) {
if (!dragged) {
initDragging();
// sort redraw and scroll shadows
// cause problems during drag so disable them
Function domManip
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
domManip: function( args, callback ) {
// Flatten any nested arrays
args = concat.apply( [], args );
Function _updateResults
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _updateResults(doc, changeList) {
var i, diff, matches, lines, start, howMany,
resultsChanged = false,
fullPath = doc.file.fullPath,
resultInfo = searchModel.results[fullPath];
Function validateRequestParams
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validateRequestParams(type, params) {
var validatedParams = null;
params = params || {};
Function _expandWordAndAddNextToSelection
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _expandWordAndAddNextToSelection(editor, removePrimary) {
editor = editor || EditorManager.getActiveEditor();
if (!editor) {
return;
}