Showing 544 of 841 total issues
Function _update
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Vue.prototype._update = function (vnode, hydrating) {
var vm = this;
if (vm._isMounted) {
callHook(vm, 'beforeUpdate');
}
Function hwb2rgb
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hwb2rgb(hwb) {
var h = hwb[0] / 360,
wh = hwb[1] / 100,
bl = hwb[2] / 100,
ratio = wh + bl,
Function updateElement
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateElement: function(rectangle, index, reset) {
var me = this;
var meta = me.getMeta();
var xScale = me.getScaleForId(meta.xAxisID);
var yScale = me.getScaleForId(meta.yAxisID);
Function updateElement
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateElement: function(rectangle, index, reset) {
var me = this;
var meta = me.getMeta();
var xScale = me.getScaleForId(meta.xAxisID);
var yScale = me.getScaleForId(meta.yAxisID);
Function calculatePointY
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
calculatePointY: function(value, index, datasetIndex) {
var me = this;
var chart = me.chart;
var meta = me.getMeta();
var yScale = me.getScaleForId(meta.yAxisID);
Function $destroy
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Vue.prototype.$destroy = function () {
var vm = this;
if (vm._isBeingDestroyed) {
return
}
Function handleEvent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleEvent: function(e) {
var me = this;
var options = me.options || {};
var hoverOptions = options.hover;
var changed = false;
Function dayOfYearFromWeekInfo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dayOfYearFromWeekInfo(config) {
var w, weekYear, week, weekday, dow, doy, temp;
w = config._w;
if (w.GG != null || w.W != null || w.E != null) {
Function drawLegendBox
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var drawLegendBox = function(x, y, legendItem) {
if (isNaN(boxWidth) || boxWidth <= 0) {
return;
}
Function highlight
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var highlight = function($element, pattern) {
if (typeof pattern === 'string' && !pattern.length) return;
var regex = (typeof pattern === 'string') ? new RegExp(pattern, 'i') : pattern;
var highlight = function(node) {
Method process_vars
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def process_vars(statement, data_source)
(@bind_vars ||= []).concat(Blazer.extract_vars(statement)).uniq!
@bind_vars.each do |var|
params[var] ||= Blazer.data_sources[data_source].variable_defaults[var]
end
Function onBlur
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onBlur: function(e, dest) {
var self = this;
if (!self.isFocused) return;
self.isFocused = false;
Function startOf
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startOf : function (units) {
units = normalizeUnits(units);
// the following switch intentionally omits break keywords
// to utilize falling through the cases.
switch (units) {
Function makeMoment
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeMoment(config) {
var input = config._i,
format = config._f,
res;
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 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 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 flushSchedulerQueue
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function flushSchedulerQueue () {
flushing = true;
// Sort queue before flush.
// This ensures that:
Function genElement
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function genElement (el) {
if (el.staticRoot && !el.staticProcessed) {
// hoist static sub-trees out
el.staticProcessed = true;
staticRenderFns.push(("with(this){return " + (genElement(el)) + "}"));
Function genHandler
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function genHandler (
handler
) {
if (!handler) {
return 'function(){}'