Skip to content

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

chore: enable golangci-lint on Windows and MacOS

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

Triggered via pull request January 30, 2025 18:48
Status Failure
Total duration 1m 6s
Artifacts

lint.yml

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

Annotations

20 errors
lint (macos-latest): disk/disk_darwin.go#L225
File is not properly formatted (gofumpt)
lint (macos-latest): mem/mem_darwin_test.go#L16
error-nil: use assert.NoError (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L19
error-nil: use assert.NoError (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L24
error-nil: use assert.NoError (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L27
negative-positive: use assert.Positive (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L30
negative-positive: use assert.Positive (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L31
compares: use assert.Less (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L33
negative-positive: use assert.Positive (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L34
compares: use assert.Less (testifylint)
lint (macos-latest): mem/mem_darwin_test.go#L36
negative-positive: use assert.Positive (testifylint)
lint (windows-latest): process/process_windows_64bit.go#L43
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint (windows-latest): process/process_windows_64bit.go#L9
File is not properly formatted (gci)
lint (windows-latest): process/process_windows_64bit.go#L11
File is not properly formatted (gci)
lint (windows-latest): sensors/sensors_windows.go#L9
File is not properly formatted (gci)
lint (windows-latest): sensors/sensors_windows.go#L11
File is not properly formatted (gci)
lint (windows-latest): host/host_windows.go#L156
naked return in func `platformInformation` with 88 lines of code (nakedret)
lint (windows-latest): host/host_windows.go#L163
naked return in func `platformInformation` with 88 lines of code (nakedret)
lint (windows-latest): host/host_windows.go#L170
naked return in func `platformInformation` with 88 lines of code (nakedret)
lint (windows-latest): host/host_windows.go#L175
naked return in func `platformInformation` with 88 lines of code (nakedret)
lint (windows-latest): cpu/cpu_windows.go#L114
fmt.Sprintf can be replaced with faster strconv.FormatUint (perfsprint)