chore: enable golangci-lint on Windows and MacOS #1277
Annotations
20 errors
lint (macos-latest):
internal/common/common_darwin.go#L370
receiver-naming: receiver name c should be consistent with previous receiver name s for CStr (revive)
|
lint (macos-latest):
process/process_darwin.go#L351
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
lint (macos-latest):
disk/disk_darwin.go#L225
File is not properly formatted (gofumpt)
|
lint (macos-latest):
net/net_darwin.go#L33
naked return in func `parseNetstatLine` with 70 lines of code (nakedret)
|
lint (macos-latest):
net/net_darwin.go#L40
naked return in func `parseNetstatLine` with 70 lines of code (nakedret)
|
lint (macos-latest):
net/net_darwin.go#L54
naked return in func `parseNetstatLine` with 70 lines of code (nakedret)
|
lint (macos-latest):
net/net_darwin.go#L77
naked return in func `parseNetstatLine` with 70 lines of code (nakedret)
|
lint (macos-latest):
net/net_darwin.go#L94
naked return in func `parseNetstatLine` with 70 lines of code (nakedret)
|
lint (macos-latest):
internal/common/common_darwin.go#L309
fmt.Errorf can be replaced with errors.New (perfsprint)
|
lint (macos-latest):
internal/common/common_darwin.go#L327
fmt.Errorf can be replaced with errors.New (perfsprint)
|
lint (windows-latest):
load/load_windows.go#L17
var-declaration: should drop = 0.0 from declaration of var loadAvg1M; it is the zero value (revive)
|
lint (windows-latest):
load/load_windows.go#L18
var-declaration: should drop = 0.0 from declaration of var loadAvg5M; it is the zero value (revive)
|
lint (windows-latest):
load/load_windows.go#L19
var-declaration: should drop = 0.0 from declaration of var loadAvg15M; it is the zero value (revive)
|
lint (windows-latest):
load/load_windows.go#L30
var-declaration: should omit type time.Duration from declaration of var samplingFrequency; it will be inferred from the right-hand side (revive)
|
lint (windows-latest):
load/load_windows.go#L31
var-declaration: should omit type float64 from declaration of var loadAvgFactor1M; it will be inferred from the right-hand side (revive)
|
lint (windows-latest):
load/load_windows.go#L32
var-declaration: should omit type float64 from declaration of var loadAvgFactor5M; it will be inferred from the right-hand side (revive)
|
lint (windows-latest):
load/load_windows.go#L33
var-declaration: should omit type float64 from declaration of var loadAvgFactor15M; it will be inferred from the right-hand side (revive)
|
lint (windows-latest):
host/host_windows.go#L82
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
|
lint (windows-latest):
internal/common/common_windows.go#L283
superfluous-else: if block ends with a continue statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
lint (windows-latest):
process/process_windows_64bit.go#L41
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|