Showing 169 of 403 total issues
File jquery.handsontable.full.js
has 11676 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Handsontable 0.11.0-beta3
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012-2014 Marcin Warpechowski
Function Core
has 1252 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.Core = function (rootElement, userSettings) {
var priv
, datamap
, grid
, selection
Function EditorManager
has 248 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.EditorManager = function(instance, priv, selection){
var that = this;
var $document = $(document);
var keyCodes = Handsontable.helper.keyCode;
Function HandsontableColumnSorting
has 242 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HandsontableColumnSorting() {
var plugin = this;
this.init = function (source) {
var instance = this;
Function TableView
has 224 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.TableView = function (instance) {
var that = this
, $window = $(window)
, $documentElement = $(document.documentElement);
Function ContextMenu
has 224 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ContextMenu(instance, customOptions){
this.instance = instance;
var contextMenu = this;
this.menu = createMenu();
Function modifyTransform
has 196 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MergeCells.prototype.modifyTransform = function (hook, currentSelectedRange, delta) {
var current;
switch (hook) {
case 'modifyTransformStart':
current = currentSelectedRange.highlight;
Function init
has 192 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var init = function () {
function onKeyDown(event) {
if (!instance.isListening()) {
Function PluginHookClass
has 185 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.PluginHookClass = (function () {
var Hooks = function () {
return {
// Hooks
Function HandsontableManualRowMove
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HandsontableManualRowMove() {
var pressed,
startRow,
endRow,
Function HandsontableManualColumnMove
has 158 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HandsontableManualColumnMove() {
var pressed
, startCol
, endCol
, startX
Function HandsontableManualRowResize
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HandsontableManualRowResize () {
var pressed
, currentTH
, currentRow
Function HandsontableManualColumnResize
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HandsontableManualColumnResize() {
var pressed
, currentTH
, currentCol
, currentWidth
Function onKeyDown
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onKeyDown(event) {
if (!instance.isListening()) {
return;
}
Function HandsontableObserveChanges
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function HandsontableObserveChanges() {
Handsontable.hooks.add('afterLoadData', init);
Handsontable.hooks.add('afterUpdateSettings', init);
Function HandsontableAutoColumnSize
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function HandsontableAutoColumnSize() {
var plugin = this
, sampleCount = 5; //number of samples to take of each value length
this.beforeInit = function () {
Function solveDimension
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var solveDimension = function (dim) {
var altDim = dim == "col" ? "row" : "col";
function changeCoords(obj, altDimValue, dimValue) {
obj[altDim] = altDimValue;
Function formatNumber
has 124 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatNumber (value, format, roundingFunction) {
var negP = false,
signed = false,
optDec = false,
abbr = '',
Function appear
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WalkontableBorder.prototype.appear = function (corners) {
var isMultiple, fromTD, toTD, fromOffset, toOffset, containerOffset, top, minTop, left, minLeft, height, width;
if (this.disabled) {
return;
}
Function Comments
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Comments(instance) {
var doSaveComment = function (row, col, comment, instance) {
instance.setCellMeta(row, col, 'comment', comment);
instance.render();