Showing 544 of 841 total issues
Function createItem
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createItem: function(input, triggerDropdown) {
var self = this;
var caret = self.caretPos;
input = input || $.trim(self.$control_input.val() || '');
Function clone
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var destElements, node, clone, i, srcElements,
inPage = jQuery.contains( elem.ownerDocument, elem );
if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
Function access
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,
length = elems.length,
bulk = key == null;
Function dispatch
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dispatch: function( event ) {
// Make a writable jQuery.Event from the native event object
event = jQuery.event.fix( event );
Function showHide
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showHide( elements, show ) {
var display, elem, hidden,
values = [],
index = 0,
length = elements.length;
Function 14
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],14:[function(require,module,exports){
'use strict';
module.exports = function(Chart) {
Function drawBody
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawBody: function(pt, vm, ctx, opacity) {
var bodyFontSize = vm.bodyFontSize;
var bodySpacing = vm.bodySpacing;
var body = vm.body;
Function update
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(reset) {
var me = this;
var meta = me.getMeta();
var line = meta.dataset;
var points = meta.data;
Function handleEvent
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleEvent: function(e) {
var me = this;
var opts = me.options;
var type = e.type === 'mouseup' ? 'click' : e.type;
var changed = false;
Function cleanData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cleanData: function( elems, /* internal */ acceptData ) {
var elem, type, id, data,
i = 0,
internalKey = jQuery.expando,
cache = jQuery.cache,
Function setOffset
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
position = jQuery.css( elem, "position" ),
curElem = jQuery( elem ),
props = {};
Function style
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
style: function( elem, name, value, extra ) {
// Don't set styles on text and comment nodes
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
return;
}
Function makeList
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeList(field) {
var count, setter;
if (field.indexOf('week') === 0) {
count = 7;
Function timeChanged
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
timeChanged: function(e) {
var cal = $(e.target).closest('.calendar'),
isLeft = cal.hasClass('left');
Function getBaseModel
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getBaseModel(tooltipOpts) {
var globalDefaults = Chart.defaults.global;
var getValueOrDefault = helpers.getValueOrDefault;
return {
Consider simplifying this complex logical expression. Open
Open
} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
diff = cache[1];
// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
} else {
Consider simplifying this complex logical expression. Open
Open
if ( start && start[ 3 ] !== unit ) {
// Trust units reported by jQuery.css
unit = unit || start[ 3 ];
// Make sure we update the tween properties later on
Consider simplifying this complex logical expression. Open
Open
if (dsMeta.bar && this.chart.isDatasetVisible(j) &&
(yScale.options.stacked === false ||
(yScale.options.stacked === true && stacks.indexOf(dsMeta.stack) === -1) ||
(yScale.options.stacked === undefined && (dsMeta.stack === undefined || stacks.indexOf(dsMeta.stack) === -1)))) {
stacks.push(dsMeta.stack);
Consider simplifying this complex logical expression. Open
Open
if (dsMeta.bar && this.chart.isDatasetVisible(j) &&
(xScale.options.stacked === false ||
(xScale.options.stacked === true && stacks.indexOf(dsMeta.stack) === -1) ||
(xScale.options.stacked === undefined && (dsMeta.stack === undefined || stacks.indexOf(dsMeta.stack) === -1)))) {
stacks.push(dsMeta.stack);
Consider simplifying this complex logical expression. Open
Open
if (dsMeta.bar && me.chart.isDatasetVisible(datasetIndex) &&
(xScale.options.stacked === false ||
(xScale.options.stacked === true && stacks.indexOf(dsMeta.stack) === -1) ||
(xScale.options.stacked === undefined && (dsMeta.stack === undefined || stacks.indexOf(dsMeta.stack) === -1)))) {
stacks.push(dsMeta.stack);