MacroPower/wakatime_exporter

View on GitHub
collector/goal.go

Summary

Maintainability
A
1 hr
Test Coverage

Method goalCollector.Update has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *goalCollector) Update(ch chan<- prometheus.Metric) error {
    params := url.Values{}
    params.Add("cache", "false")

    body, fetchErr := c.fetchStat(c.uri, goalEndpoint, params)
Severity: Minor
Found in collector/goal.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status