Showing 1,485 of 3,294 total issues
Function removeMenuItem
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Menu.prototype.removeMenuItem = function (command) {
var menuItemID,
commandID;
if (!command) {
Function duplicateText
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function duplicateText(editor) {
editor = editor || EditorManager.getFocusedEditor();
if (!editor) {
return;
}
Function _onImageLoaded
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ImageView.prototype._onImageLoaded = function (e) {
// add dimensions and size
this._naturalWidth = e.currentTarget.naturalWidth;
this._naturalHeight = e.currentTarget.naturalHeight;
Function getSessionHints
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getSessionHints(query, cursor, type, token, $deferredHints) {
var hintResults = session.getHints(query, getStringMatcher());
if (hintResults.needGuesses) {
var guessesResponse = ScopeManager.requestGuesses(session,
Function insertHint
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JSHints.prototype.insertHint = function ($hintObj) {
var hint = $hintObj.data("token"),
completion = hint.value,
cursor = session.getCursor(),
query = session.getQuery(),
Function applyChange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyChange(from, to, text) {
var delta = from - to + text.length;
var node = nodeAtLocation(from);
// insert a text node
Function _prepareServer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _prepareServer(doc) {
var deferred = new $.Deferred(),
showBaseUrlPrompt = false;
_server = LiveDevServerManager.getServer(doc.file.fullPath);
Function _onKeydown
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
InlineDocsViewer.prototype._onKeydown = function (event) {
var keyCode = event.keyCode,
scroller = this.$scroller[0],
scrollPos;
Function _optionDatepicker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_optionDatepicker: function(target, name, value) {
var inst = this._getInst(target);
if (arguments.length == 2 && typeof name == 'string') {
return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
(inst ? (name == 'all' ? $.extend({}, inst.settings) :
Function _canvasKeyDown
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _canvasKeyDown(e) {
var code = e.keyCode,
self = e.target,
stepEditor = self.stepEditor;
Function getRange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRange(allowFolded) {
var range = options.range || finder(cm, pos);
if (!range || range.to.line - range.from.line < prefs.getSetting("minFoldSize")) {
return null;
}
Function complete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function() {
if ( el.to.opacity === 0 ) {
el.css( "opacity", el.from.opacity );
}
if( mode === "hide" ) {
Function resize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function(event, ui) {
var that = $(this).data("resizable"), o = that.options,
ps = that.containerSize, co = that.containerOffset, cs = that.size, cp = that.position,
pRatio = that._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = that.containerElement;
Function _refresh
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_refresh: function() {
this._setupDisabled( this.options.disabled );
this._setupEvents( this.options.event );
this._setupHeightStyle( this.options.heightStyle );
Function promise
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
promise: function( type, object ) {
if ( typeof type !== "string" ) {
object = type;
type = undefined;
}
Function style
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
style: function( elem, name, value, extra ) {
// Don't set styles on text and comment nodes
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
return;
}
Function clone
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var srcElements,
destElements,
i,
// IE<=8 does not properly clone detached, unknown element nodes
Function read
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
File.prototype.read = function (options, callback) {
if (typeof (options) === "function") {
callback = options;
options = {};
options.encoding = this._encoding;
Function getExpressions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getExpressions(ast, start, end) {
var expns = [],
s = start,
e = end,
expn;
Function handleFindRefs
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleFindRefs (refsResp) {
if (!refsResp || !refsResp.references || !refsResp.references.refs) {
return;
}