testcube/static/modules/chart-support.js
Function renderRunDetailChart
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderRunDetailChart() {
if (window.app.runList === undefined
|| window.app.summaryInfo === undefined
|| window.app.summaryInfo.result_total === 0) {
loadingCompleted();
Function renderResultDetailChart
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderResultDetailChart(callback) {
if (window.app.resultHistory === undefined
|| window.app.summaryInfo === undefined) {
loadingCompleted();
return;
File chart-support.js
has 261 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define(['moment', 'c3', 'd3', './utils'], function (moment, c3, d3, utils) {
"use strict";
let config = {};
Function renderRunCoverageChart
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderRunCoverageChart(runId, callback) {
require(['jquery'], function ($) {
$.getJSON('/api/runs/' + runId + '/tags/', function (data) {
let counts = ['counts'];
let tags = [];