Skip to content

chore: enable golangci-lint on Windows and MacOS #1280

chore: enable golangci-lint on Windows and MacOS

chore: enable golangci-lint on Windows and MacOS #1280

Triggered via pull request January 30, 2025 19:02
Status Failure
Total duration 1m 3s
Artifacts

lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

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