synapsecns/sanguine

View on GitHub
contrib/promexporter/exporters/exporter.go

Summary

Maintainability
A
45 mins
Test Coverage

Function StartExporterServer has 7 return statements (exceeds 4 allowed).
Open

func StartExporterServer(ctx context.Context, handler metrics.Handler, cfg config.Config) error {
    // the main server serves metrics since this is only a prom exporter
    _ = os.Setenv(metrics.MetricsPortEnabledEnv, "false")

    router := ginhelper.New(logger)
Severity: Major
Found in contrib/promexporter/exporters/exporter.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status