Showing 169 of 403 total issues
Function createElements
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DateEditor.prototype.createElements = function () {
Handsontable.editors.TextEditor.prototype.createElements.apply(this, arguments);
this.datePicker = document.createElement('DIV');
Handsontable.Dom.addClass(this.datePicker, 'htDatepickerHolder');
Function setDataAtCell
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.setDataAtCell = function (row, col, value, source) {
var input = setDataInputToArray(row, col, value)
, i
, ilen
, changes = []
Function getColHeader
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getColHeader = function (col) {
if (col === void 0) {
var out = [];
for (var i = 0, ilen = instance.countCols(); i < ilen; i++) {
out.push(instance.getColHeader(i));
Function offset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.Dom.offset = function (elem) {
if (this.hasCaptionProblem() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {
//fixes problem with Firefox ignoring <caption> in TABLE offset (see also Handsontable.Dom.outerHeight)
//http://jsperf.com/offset-vs-getboundingclientrect/8
var box = elem.getBoundingClientRect();
Function CellInfoCollection
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CellInfoCollection() {
var collection = [];
collection.getInfo = function (row, col) {
Function WalkontableColumnStrategy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalkontableColumnStrategy(instance, containerSizeFn, sizeAtIndex, strategy) {
var size
, i = 0;
WalkontableAbstractStrategy.apply(this, arguments);
Function execute
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PluginHookClass.prototype.execute = function (instance, key, p1, p2, p3, p4, p5, p6) {
Consider simplifying this complex logical expression. Open
Open
if (this.hasCaptionProblem() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {
//fixes problem with Firefox ignoring <caption> in TABLE offset (see also Handsontable.Dom.outerHeight)
//http://jsperf.com/offset-vs-getboundingclientrect/8
var box = elem.getBoundingClientRect();
return {
Function run
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PluginHookClass.prototype.run = function (instance, key, p1, p2, p3, p4, p5, p6) {
Function populateFromArray
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.populateFromArray = function (row, col, input, endRow, endCol, source, method) {
Function AutocompleteRenderer
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var AutocompleteRenderer = 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) {
Function runHooksAndReturn
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.runHooksAndReturn = function (key, p1, p2, p3, p4, p5, p6) {
Function PasswordRenderer
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var PasswordRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
Function runHooks
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.runHooks = function (key, p1, p2, p3, p4, p5, p6) {
Function NumericRenderer
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var NumericRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
Function renderer
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ContextMenu.prototype.renderer = function(instance, TD, row, col, prop, value, cellProperties){
Function cellDecorator
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Handsontable.renderers.cellDecorator = function (instance, TD, row, col, prop, value, cellProperties) {
Function TextRenderer
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var TextRenderer = function (instance, TD, row, col, prop, value, cellProperties) {
Function cellDecorator
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Handsontable.renderers.cellDecorator = function (instance, TD, row, col, prop, value, cellProperties) {