Showing 544 of 841 total issues
Function renderPieChart
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.renderPieChart = function (chart) {
waitForLoaded(function () {
var chartOptions = {
chartArea: {
top: "10%",
Function renderColumnChart
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.renderColumnChart = function (chart, chartType) {
chartType = chartType || "column";
var series = chart.data;
var options = jsOptions(chart, chart.options), i, j, s, d, rows = [], categories = [];
options.chart.type = chartType;
Function Controller
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Chart.Controller = function(item, config, instance) {
var me = this;
config = initConfig(config);
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function(duration, lazy) {
var me = this;
if (plugins.notify(me, 'beforeRender') === false) {
return;
Function show
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.show = function () {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.data('target')
Method set_queries
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def set_queries(limit = nil)
@my_queries =
if limit && blazer_user && !params[:filter] && Blazer.audit
queries_by_ids(Blazer::Audit.where(user_id: blazer_user.id).where("created_at > ?", 30.days.ago).where("query_id IS NOT NULL").group(:query_id).order("count_all desc").count.keys)
else
Method run_statement
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run_statement(statement, options = {})
run_id = options[:run_id]
async = options[:async]
result = nil
if cache_mode != "off"
Function html
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
html: function( value ) {
return access( this, function( value ) {
var elem = this[ 0 ] || {},
i = 0,
l = this.length;
Function toggleClass
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleClass: function( value, stateVal ) {
var type = typeof value;
if ( typeof stateVal === "boolean" && type === "string" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );
Function updateStyle
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateStyle (oldVnode, vnode) {
if ((!oldVnode.data || !oldVnode.data.style) && !vnode.data.style) {
return
}
var cur, name;
Function hsl2rgb
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hsl2rgb(hsl) {
var h = hsl[0] / 360,
s = hsl[1] / 100,
l = hsl[2] / 100,
t1, t2, t3, rgb, val;
Function scaleMerge
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.scaleMerge = function(_base, extension) {
var base = helpers.clone(_base);
helpers.each(extension, function(value, key) {
if (key === 'xAxes' || key === 'yAxes') {
Function drawPointLabels
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawPointLabels(scale) {
var ctx = scale.ctx;
var getValueOrDefault = helpers.getValueOrDefault;
var opts = scale.options;
var angleLineOpts = opts.angleLines;
Function longestText
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
helpers.longestText = function(ctx, font, arrayOfThings, cache) {
cache = cache || {};
var data = cache.data = cache.data || {};
var gc = cache.garbageCollect = cache.garbageCollect || [];
Function listenArrayEvents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function listenArrayEvents(array, listener) {
if (array._chartjs) {
array._chartjs.listeners.push(listener);
return;
}
Function runQueryHelper
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runQueryHelper(query) {
var xhr = $.ajax({
url: Routes.run_queries_path(),
method: "POST",
data: query.data,
Function initializePlugins
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Interface.prototype.initializePlugins = function(plugins) {
var i, n, key;
var self = this;
var queue = [];
Method state_change
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def state_change(check, state, state_was, rows_count, error, columns, rows, column_types, check_type)
Function finish
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function( type ) {
if ( type !== false ) {
type = type || "fx";
}
return this.each(function() {
Function fix
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}