Showing 3,294 of 3,294 total issues
Function init
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init(domainManager) {
if (!domainManager.hasDomain(domainName)) {
domainManager.registerDomain(domainName, {
major: 0,
minor: 1
Function setSelectedIndex
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MultiRangeInlineEditor.prototype.setSelectedIndex = function (index, force) {
var newIndex = Math.min(Math.max(-1, index), this._ranges.length - 1),
self = this;
if (!force && newIndex !== -1 && newIndex === this._selectedRangeIndex) {
Function _getValidStepsParams
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getValidStepsParams(match) {
var param,
def = [ "5", "end" ],
params = def,
oldIndex = match.index, // we need to store the old match.index to re-set the index afterwards
Function registerToolingProviders
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function registerToolingProviders() {
chProvider = new CodeHintsProvider(_client),
phProvider = new DefaultProviders.ParameterHintsProvider(_client),
lProvider = new DefaultProviders.LintingProvider(_client),
jdProvider = new DefaultProviders.JumpToDefProvider(_client);
Function plot
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
plot: function (settings) {
var setting, i, j, last, interval,
sp = this.stepParams,
isStart = (sp.timing === "start"),
p = [];
Function _contactContainers
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_contactContainers: function(event) {
// get innermost container that intersects with item
var innermostContainer = null, innermostIndex = null;
Function _setOption
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var i,
valsLength = 0;
if ( $.isArray( this.options.values ) ) {
Function val
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, isFunction,
elem = this[0];
if ( !arguments.length ) {
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
var origFn, type;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {
Function extend
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
Function _openPrefFilesInSplitView
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _openPrefFilesInSplitView(prefsPath, defaultPrefsPath, deferredPromise) {
var currScheme = MainViewManager.getLayoutScheme(),
file = FileSystem.getFileForPath(prefsPath),
defaultPrefsFile = FileSystem.getFileForPath(defaultPrefsPath),
Function processLine
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processLine(line) {
if (line === "") {
return;
}
Function open
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DropdownEventHandler.prototype.open = function () {
var self = this;
/**
* Convert keydown events into hint list navigation actions.
Function getDirNamesForDuplicateFiles
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDirNamesForDuplicateFiles(files) {
// Must have at least two files in list for this to make sense
if (files.length <= 1) {
return [];
}
Function extend
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
var origFn, type;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {
Function val
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, isFunction,
elem = this[0];
if ( !arguments.length ) {
Function stop
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( type, clearQueue, gotoEnd ) {
var stopQueue = function( hooks ) {
var stop = hooks.stop;
delete hooks.stop;
stop( gotoEnd );
Function hash
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hash(o) {
if (o === false || o === null || o === undefined) {
return 0;
}
if (typeof o.valueOf === 'function') {
Function updateOrderedMap
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateOrderedMap(omap, k, v) {
var map = omap._map;
var list = omap._list;
var i = map.get(k);
var has = i !== undefined;