thoughtworks/metricating-api

View on GitHub

Showing 1 of 2 total issues

Function calculate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async calculate (projectName, period, leadtimeType) {
const project = await this.projectService.getProject(projectName)
if (project === undefined) {
throw new Error(`Project ${projectName} not found`)
}
Severity: Minor
Found in app/services/leadtime.service.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language