antongolub/npm-registry-firewall

View on GitHub
src/main/js/metric.js

Summary

Maintainability
A
1 hr
Test Coverage
A
97%

Function getMetricsDigest has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const getMetricsDigest = () => {
  const formatUptime = (uptime) => {
    const pad = s => (s < 10 ? '0' : '') + s
    const hours = Math.floor(uptime / (60 * 60))
    const minutes = Math.floor(uptime % (60 * 60) / 60)
Severity: Minor
Found in src/main/js/metric.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status