Showing 169 of 403 total issues
Function TextRenderer
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var TextRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
Function SearchCellDecorator
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Handsontable.SearchCellDecorator = function (instance, TD, row, col, prop, value, cellProperties) {
Avoid deeply nested control flow statements. Open
Open
if (expanding) {
if (delta[dim] > 0) { //moving East wall further East
changeCoords(currentSelectedRange.from, Math.min(topLeft[altDim], mergeParent[altDim]), Math.min(topLeft[dim], mergeParent[dim]));
if (examinedCol > mergeParent[dim]) {
changeCoords(currentSelectedRange.to, Math.max(bottomRight[altDim], mergeParent[altDim] + mergeParent[altDim + "span"] - 1), Math.max(bottomRight[dim], mergeParent[dim] + mergeParent[dim + "span"]));
Function scrollLogicVertical
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
WalkontableScroll.prototype.scrollLogicVertical = function (delta, offset, total, fixedCount, maxSize, cellSizeFn) {
Avoid deeply nested control flow statements. Open
Open
if (typeof cell == 'object' ) Handsontable.Dom.addClass(cell, classNames[s]);
Function prepare
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
HandsontableEditor.prototype.prepare = function (td, row, col, prop, value, cellProperties) {
Avoid deeply nested control flow statements. Open
Open
if (this.lastDesiredCoords && delta.col === 0) {
delta.col += this.lastDesiredCoords.col - current.col;
this.lastDesiredCoords = null;
}
Avoid deeply nested control flow statements. Open
Open
if(typeof cellProperties.language == 'undefined') {
numeral.language('en');
} else {
numeral.language(cellProperties.language);
}
Avoid deeply nested control flow statements. Open
Open
if (activeEditor.state !== Handsontable.EditorState.WAITING){
that.closeEditorAndSaveChanges(ctrlDown);
}
Avoid deeply nested control flow statements. Open
Open
if (topLeft[dim] == currentSelectedRange.highlight[dim]) {
examinedCol = bottomRight[dim] + delta[dim];
expanding = true;
}
else {
Function afterRenderer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
afterRenderer = function (TD, row, col, prop, value, cellProperties) {
Avoid deeply nested control flow statements. Open
Open
for (var i = topLeft[altDim]; i <= bottomRight[altDim]; i++) {
var mergeParent = this.mergedCellInfoCollection.getInfo(i, bottomRight[dim]);
if (mergeParent) {
if (mergeParent[dim] <= currentSelectedRange.highlight[dim]) {
examinedCol = topLeft[dim] + delta[dim];
Avoid deeply nested control flow statements. Open
Open
if (this.settings.className) {
instance.wtTable.currentCellCache.add(r, c, this.settings.className);
}
Avoid deeply nested control flow statements. Open
Open
else if (source_r >= corners[0] && source_r <= corners[2]) {
//selection is in this row
instance.wtTable.currentCellCache.add(r, c, this.settings.highlightRowClassName);
// selected row headers
Avoid deeply nested control flow statements. Open
Open
else if (selectionsOnly && this.oldCellCache.test(vr, vc, classNames[s])) {
cell = this.getCell(new WalkontableCellCoords(r, c));
if (typeof cell == 'object' ) Handsontable.Dom.removeClass(cell, classNames[s]);
}
Avoid deeply nested control flow statements. Open
Open
if (instance.getSettings().enterBeginsEditing){
that.openEditor();
} else {
moveSelectionAfterEnter(event.shiftKey);
}
Function afterRenderer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var afterRenderer = function (TD, row, col, prop, value, cellProperties) {
Function prepare
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
BaseEditor.prototype.prepare = function(row, col, prop, td, originalValue, cellProperties){
Avoid deeply nested control flow statements. Open
Open
if(checkbox.length > 0 && !cellProperties.readOnly){
if(!event.isImmediatePropagationStopped()){
event.stopImmediatePropagation();
event.preventDefault();
Avoid deeply nested control flow statements. Open
Open
if (typeof cell == 'object' ) Handsontable.Dom.addClass(cell,classNames[s]);