Contrast-Security-OSS/DjanGoat

View on GitHub
static/app/javascript/dashboard/home.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function drawChart has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function drawChart() {
    var pto_taken = parseInt(document.getElementById('pto_taken').value);
    var pto_remain = parseInt(document.getElementById('pto_remain').value);
    var sick_taken = parseInt(document.getElementById('sick_taken').value);
    var sick_remain = parseInt(document.getElementById('sick_remain').value);
Severity: Major
Found in static/app/javascript/dashboard/home.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status