Skip to content

Add a CI linter (#6) #4

Add a CI linter (#6)

Add a CI linter (#6) #4

Triggered via push March 23, 2025 17:49
Status Failure
Total duration 29s
Artifacts

lint.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: telemetry/telemetry.go#L69
ST1003: method Json should be JSON (stylecheck)
lint: telemetry/telemetry.go#L70
Consider pre-allocating `out` (prealloc)
lint: telemetry/reader.go#L284
return both a `nil` error and an invalid value: use a sentinel error instead (nilnil)
lint: telemetry/reader.go#L178
`if labelStr == "SCAL"` has complex nested blocks (complexity: 11) (nestif)
lint: telemetry/scal.go#L23
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: telemetry/telemetry.go#L36
lastGoodTrack is a global variable (gochecknoglobals)
lint: telemetry/telemetry.go#L35
pp is a global variable (gochecknoglobals)
lint: telemetry/telemetry.go#L8
import 'github.com/paulmach/orb/geo' is not allowed from list 'Main' (depguard)
lint: telemetry/telemetry.go#L7
import 'github.com/paulmach/orb' is not allowed from list 'Main' (depguard)
lint: telemetry/reader.go#L19
cognitive complexity 68 of func `Read` is high (> 30) (gocognit)