Showing 3,294 of 3,294 total issues
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 _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 _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 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 _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 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 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 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 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 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;
}
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 getAllFiles
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ProjectModel.prototype.getAllFiles = function getAllFiles(filter, additionalFiles, sort) {
// The filter and includeWorkingSet params are both optional.
// Handle the case where filter is omitted but includeWorkingSet is
// specified.
if (additionalFiles === undefined && typeof (filter) !== "function") {
Function loadStyleSheet
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadStyleSheet(module, path) {
var result = new $.Deferred();
loadFile(module, path)
.done(function (content) {
Function _getAllFilesCache
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ProjectModel.prototype._getAllFilesCache = function _getAllFilesCache(sort) {
if (!this._allFilesCachePromise) {
var deferred = new $.Deferred(),
allFiles = [],
allFilesVisitor = function (entry) {
Function refreshInterfaceCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function refreshInterfaceCallback(spec) {
function makeCommandFunction(domainName, commandSpec) {
return function () {
var deferred = $.Deferred();
var parameters = Array.prototype.slice.call(arguments, 0);
Function _loadAll
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _loadAll(directory, config, entryPoint, processExtension) {
var result = new $.Deferred();
FileSystem.getDirectoryForPath(directory).getContents(function (err, contents) {
if (!err) {
Function _getTagInfoStartingFromAttrValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getTagInfoStartingFromAttrValue(ctx) {
// Assume we in the attr value
// and validate that by going backwards
var attrInfo = _extractAttrVal(ctx),
attrVal = attrInfo.val,