ICTU/quality-time

View on GitHub
components/frontend/src/dashboard/MetricSummaryCard.js

Summary

Maintainability
A
1 hr
Test Coverage

Function ariaChartLabel has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function ariaChartLabel(summary) {
    let label = ""
    Object.entries(summary).forEach(([date, count]) => {
        const nrMetrics = sum(count)
        const nrMetricsLabel = nrMetrics === 0 ? "no metrics" : pluralize(`${nrMetrics} metric`, nrMetrics)
Severity: Minor
Found in components/frontend/src/dashboard/MetricSummaryCard.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status