chore: enable golangci-lint on Windows and MacOS #1280
Annotations
11 errors
lint (macos-latest):
mem/mem_darwin_test.go#L16
require-error: for error assertions use require (testifylint)
|
lint (macos-latest):
mem/mem_darwin_test.go#L19
require-error: for error assertions use require (testifylint)
|
lint (macos-latest):
mem/mem_darwin_test.go#L24
require-error: for error assertions use require (testifylint)
|
lint (macos-latest):
process/process_darwin.go#L381
`(*Process).cmdlineSliceWithContext` - `fallback` is unused (unparam)
|
lint (macos-latest)
issues found
|
lint (windows-latest):
process/process_windows_64bit.go#L44
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
lint (windows-latest):
cpu/cpu_windows.go#L114
fmt.Sprintf can be replaced with faster strconv.FormatUint (perfsprint)
|
lint (windows-latest):
disk/disk_windows.go#L207
fmt.Sprintf can be replaced with string concatenation (perfsprint)
|
lint (windows-latest):
net/net_windows.go#L243
fmt.Errorf can be replaced with errors.New (perfsprint)
|
lint (windows-latest):
process/process_windows.go#L848
getFromSnapProcess - result 2 (string) is never used (unparam)
|
lint (windows-latest)
issues found
|