MacroPower/wakatime_exporter

View on GitHub
collector/summary.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method summaryCollector.Update has 82 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *summaryCollector) Update(ch chan<- prometheus.Metric) error {
    params := url.Values{}
    params.Add("start", "today")
    params.Add("end", "today")
    params.Add("cache", "false")
Severity: Major
Found in collector/summary.go - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status