acooks/jittertrap

View on GitHub

Showing 6 of 67 total issues

Function tputChart has 126 lines of code (exceeds 50 allowed). Consider refactoring.
Open

  my.charts.tput.tputChart = (function (m) {
    var margin = {
      top: 20,
      right: 20,
      bottom: 40,
Severity: Major
Found in html5-client/src/js/jittertrap-chart-tput.js - About 4 hrs to fix

    Function redraw has 96 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

        m.redraw = function() {
    
          var width = size.width - margin.left - margin.right;
          var height = size.height - margin.top - margin.bottom;
    
    
    Severity: Major
    Found in html5-client/src/js/jittertrap-chart-toptalk.js - About 2 hrs to fix

      Function reset has 85 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

          m.reset = function() {
      
            d3.select("#chartToptalk").selectAll("svg").remove();
      
            svg = d3.select("#chartToptalk")
      Severity: Major
      Found in html5-client/src/js/jittertrap-chart-toptalk.js - About 2 hrs to fix

        Function reset has 80 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

            m.reset = function() {
        
              d3.select("#packetGapContainer").selectAll("svg").remove();
        
              svg = d3.select("#packetGapContainer")
        Severity: Major
        Found in html5-client/src/js/jittertrap-chart-pgaps.js - About 2 hrs to fix

          Function reset has 69 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

              m.reset = function(selectedSeries) {
          
                d3.select("#chartThroughput").selectAll("svg").remove();
          
                svg = d3.select("#chartThroughput")
          Severity: Major
          Found in html5-client/src/js/jittertrap-chart-tput.js - About 1 hr to fix

            Function Program has 66 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

              var Program = function (json) {
                this.id = "program_" + nextPID++;
                this.name = json.name;
                this.timeoutHandles = {};
                this.impairments = json.impairments;
            Severity: Major
            Found in html5-client/src/js/jittertrap-programs.js - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language