Showing 1,485 of 3,294 total issues
Function chain
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function chain(functions, args) {
var deferred = $.Deferred();
function chainHelper(index, args) {
if (functions.length === index) {
Function parseLessCode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseLessCode(code, url) {
var result = new $.Deferred(),
options;
if (url) {
Function doSequentially
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doSequentially(items, beginProcessItem, failAndStopFast) {
var masterDeferred = new $.Deferred(),
hasFailed = false;
Function getIcons
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getIcons: function () {
var result,
extensions = this.props.extensions;
if (extensions && extensions.get("icons")) {
Function _findAllMatchingSelectorsInText
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _findAllMatchingSelectorsInText(text, selector, mode) {
var allSelectors = extractAllSelectors(text, mode);
var result = [];
// For now, we only match the rightmost simple selector, and ignore
Function focus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Pane.prototype.focus = function () {
var current = window.document.activeElement,
self = this;
// Helper to focus the current view if it can
Function off
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
off: function( types, selector, fn ) {
var handleObj, type;
if ( types && types.preventDefault && types.handleObj ) {
// ( event ) dispatched jQuery.Event
handleObj = types.handleObj;
Function *
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"*": [ function( prop, value ) {
var tween = this.createTween( prop, value ),
target = tween.cur(),
parts = rfxnum.exec( value ),
unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
Function hashString
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hashString: function(data, len, seed) {
var c1 = 0xcc9e2d51, c2 = 0x1b873593;
var h1 = seed;
var roundedEnd = len & ~0x1;
Function offset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
offset: function( options ) {
if ( arguments.length ) {
return options === undefined ?
this :
this.each(function( i ) {
Function handleFileDelete
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleFileDelete() {
var entry = ProjectManager.getSelectedItem();
Dialogs.showModalDialog(
DefaultDialogs.DIALOG_ID_EXT_DELETED,
Strings.CONFIRM_DELETE_TITLE,
Function updateFileAndHeaderCheckboxes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateFileAndHeaderCheckboxes($clickedRow, isChecked) {
var $firstMatch = ($clickedRow.data("item-index") === 0) ? $clickedRow :
$clickedRow.prevUntil(".file-section").last(),
$fileRow = $firstMatch.prev(),
$siblingRows = $fileRow.nextUntil(".file-section"),
Function keydown
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, keydown: function (e) {
var $this
, $items
, $active
, $parent
Function createInterface
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
NodeToBracketsInterface.prototype.createInterface = function (methodName, respond) {
var self = this;
return function (params) {
var callObject = {
method: methodName,
Function getGitInfo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getGitInfo(cwd) {
var opts = { cwd: cwd, maxBuffer: 1024 * 1024 },
json = {};
// count the number of commits for our version number
Consider simplifying this complex logical expression. Open
Open
if (endInclusive) {
return (start.line < pos.line || start.ch <= pos.ch) && // inclusive
(end.line > pos.line || end.ch >= pos.ch); // inclusive
} else {
return (start.line < pos.line || start.ch <= pos.ch) && // inclusive
Function _generateMonthYearHeader
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
secondary, monthNames, monthNamesShort) {
Consider simplifying this complex logical expression. Open
Open
if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
(inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
Consider simplifying this complex logical expression. Open
Open
if ($.datepicker._datepickerShowing)
switch (event.keyCode) {
case 9: $.datepicker._hideDatepicker();
handled = false;
break; // hide on tab out
Consider simplifying this complex logical expression. Open
Open
if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
var that = this;
$(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
if(that._trigger("stop", event) !== false) {
that._clear();