tobyqin/testcube

View on GitHub
testcube/static/modules/chart-support.js

Summary

Maintainability
C
1 day
Test Coverage

Function renderRunDetailChart has 108 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function renderRunDetailChart() {
        if (window.app.runList === undefined
            || window.app.summaryInfo === undefined
            || window.app.summaryInfo.result_total === 0) {
            loadingCompleted();
Severity: Major
Found in testcube/static/modules/chart-support.js - About 4 hrs to fix

    Function renderResultDetailChart has 98 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function renderResultDetailChart(callback) {
            if (window.app.resultHistory === undefined
                || window.app.summaryInfo === undefined) {
                loadingCompleted();
                return;
    Severity: Major
    Found in testcube/static/modules/chart-support.js - About 3 hrs to fix

      File chart-support.js has 261 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      define(['moment', 'c3', 'd3', './utils'], function (moment, c3, d3, utils) {
      
          "use strict";
          let config = {};
      
      
      Severity: Minor
      Found in testcube/static/modules/chart-support.js - About 2 hrs to fix

        Function renderRunCoverageChart has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function renderRunCoverageChart(runId, callback) {
                require(['jquery'], function ($) {
                    $.getJSON('/api/runs/' + runId + '/tags/', function (data) {
                        let counts = ['counts'];
                        let tags = [];
        Severity: Minor
        Found in testcube/static/modules/chart-support.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status