Showing 1,485 of 3,294 total issues
Function restoreLineFolds
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restoreLineFolds(editor) {
/**
* Checks if the range from and to Pos is the same as the selection start and end Pos
* @param {Object} range {from, to} where from and to are CodeMirror.Pos objects
* @param {Object} selection {start, end} where start and end are CodeMirror.Pos objects
Function _handleListEvents
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _handleListEvents() {
$dropdown
.on("click", "a", function () {
var $link = $(this),
id = $link.attr("id"),
Function _eventHandler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_eventHandler: function( event ) {
var options = this.options,
active = this.active,
clicked = $( event.currentTarget ),
clickedIsActive = clicked[ 0 ] === active[ 0 ],
Function exports
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function( grunt ) {
grunt.registerTask( "testswarm", function( commit, configFile ) {
var test,
testswarm = require( "testswarm" ),
Function refresh
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
var maxHeight, overflow,
heightStyle = this.options.heightStyle,
parent = this.element.parent();
Function setup
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup: function() {
if ( this.module !== config.previousModule ) {
if ( config.previousModule ) {
runLoggingCallbacks( "moduleDone", QUnit, {
name: config.previousModule,
Function init
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function() {
extend( config, {
stats: { all: 0, bad: 0 },
moduleStats: { all: 0, bad: 0 },
started: +new Date(),
Function attachHandlers
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function attachHandlers() {
function handleDragOver(event) {
event = event.originalEvent || event;
Function filterFactory
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function filterFactory(iterable, predicate, context, useKeys) {
var filterSequence = makeSequence(iterable);
if (useKeys) {
filterSequence.has = function(key ) {
var v = iterable.get(key, NOT_SET);
Function concatFactory
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function concatFactory(iterable, values) {
var isKeyedIterable = isKeyed(iterable);
var iters = [iterable].concat(values).map(function(v ) {
if (!isIterable(v)) {
v = isKeyedIterable ?
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 exports
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
var common = require("./lib/common")(grunt),
build = require("./build")(grunt);
// task: write-config
Function _updateTitle
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _updateTitle() {
var currentDoc = DocumentManager.getCurrentDocument(),
windowTitle = brackets.config.app_title,
currentlyViewedFile = MainViewManager.getCurrentlyViewedFile(MainViewManager.ACTIVE_PANE),
currentlyViewedPath = currentlyViewedFile && currentlyViewedFile.fullPath,
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 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 _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 _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 _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 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,