wip: enable a bunch of new linting rules at once #280
Annotations
10 errors and 10 warnings
internal/auth/csp/api_token_client.go#L34
Error return value of `resp.Body.Close` is not checked (errcheck)
|
internal/auth/csp/client_credentials.go#L43
Error return value of `resp.Body.Close` is not checked (errcheck)
|
internal/reporter.go#L115
Error return value of `resp.Body.Close` is not checked (errcheck)
|
senders/test_server_test.go#L74
Error return value of `request.Body.Close` is not checked (errcheck)
|
senders/test_server_test.go#L80
Error return value of `r.Close` is not checked (errcheck)
|
senders/noop_test.go#L56
Error return value of `wf.Flush` is not checked (errcheck)
|
internal/sanitize_test.go#L17
string `heartbeat` has 5 occurrences, make it a constant (goconst)
|
internal/span/formatter_test.go#L30
string `"order.shirts" source="test_source" traceId=7b3bf470-9456-11e8-9eb6-529269fb1459` has 3 occurrences, make it a constant (goconst)
|
internal/sdkmetrics/registry_test.go#L21
assignOp: replace `f.count = f.count + 1` with `f.count++` (gocritic)
|
internal/sdkmetrics/registry_test.go#L23
assignOp: replace `f.errors = f.errors + 1` with `f.errors++` (gocritic)
|
event/events.go#L1
package-comments: should have a package comment (revive)
|
version/version.go#L12
exported: exported var Version should have comment or be unexported (revive)
|
version/version.go#L1
package-comments: should have a package comment (revive)
|
internal/sdkmetrics/noop_registry.go#L3
exported: exported function NewNoOpRegistry should have comment or be unexported (revive)
|
internal/sdkmetrics/metrics.go#L1
package-comments: should have a package comment (revive)
|
internal/sdkmetrics/options.go#L3
exported: exported type RegistryOption should have comment or be unexported (revive)
|
internal/sdkmetrics/real_registry.go#L58
exported: exported function NewMetricRegistry should have comment or be unexported (revive)
|
internal/sdkmetrics/options.go#L5
exported: exported function SetSource should have comment or be unexported (revive)
|
internal/sdkmetrics/registry.go#L13
exported: exported type Incrementer should have comment or be unexported (revive)
|
internal/sdkmetrics/success_tracker.go#L3
exported: exported type SuccessTracker should have comment or be unexported (revive)
|
The logs for this run have expired and are no longer available.
Loading