Skip to content

golangci-lint golangci-lint # #59

golangci-lint golangci-lint #

golangci-lint golangci-lint # #59

Triggered via push February 6, 2025 15:39
Status Success
Total duration 1m 56s
Artifacts
detect-modules
8s
detect-modules
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

53 errors and 11 warnings
golangci-lint (/home/runner/work/whimer/whimer/analysis)
golangci-lint exit with code 5
golangci-lint (/home/runner/work/whimer/whimer/api-x): api-x/internal/backend/notehandler.go#L129
SA1019: note.NoteCreatorServer().BatchGetUploadAuth is deprecated: BatchGetUploadAuth is deprecated, use BatchGetUploadAuthV2 instead. (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/api-x): api-x/internal/backend/comment/model.go#L14
SA5008: unknown JSON option "optional" (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/api-x): api-x/internal/backend/comment/model.go#L15
SA5008: unknown JSON option "optional" (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/relation): relation/internal/infra/dao/relation_test.go#L41
Error return value of `relationDao.Insert` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/relation): relation/internal/infra/dao/relation_test.go#L60
Error return value of `relationDao.Insert` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/relation): relation/internal/infra/dao/relation_test.go#L115
Error return value of `relationDao.Insert` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/counter): counter/internal/svc/counter.go#L144
Error return value of `s.updateSummaryNow` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/counter): counter/internal/svc/counter_test.go#L22
Error return value of `svc.SyncSummaryFromRecords` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/counter): counter/internal/svc/counter.go#L46
func `(*CounterSvc).summaryKey` is unused (unused)
golangci-lint (/home/runner/work/whimer/whimer/counter): counter/internal/svc/counter.go#L167
func `(*CounterSvc).cacheSummary` is unused (unused)
golangci-lint (/home/runner/work/whimer/whimer/comment): comment/internal/srv/comment.go#L231
ineffectual assignment to err (ineffassign)
golangci-lint (/home/runner/work/whimer/whimer/comment): comment/internal/infra/dep/dep.go#L62
S1000: should use for range instead of for { select {} } (gosimple)
golangci-lint (/home/runner/work/whimer/whimer/comment): comment/internal/biz/comment.go#L132
Error return value of `.IncrReplyCount` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/xgrpc/client.go#L106
S1000: should use for range instead of for { select {} } (gosimple)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/recovery/do.go#L15
printf: non-constant format string in call to github.com/ryanreadbooks/whimer/misc/xerror.Wrapf (govet)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/stacktrace/stack_test.go#L11
Error return value is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/stacktrace/stack_test.go#L15
Error return value is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/utils/maps/maps_test.go#L16
Error return value is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/xhttp/router_test.go#L89
Error return value of `http.DefaultClient.Do` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/xhttp/router_test.go#L92
Error return value of `http.DefaultClient.Do` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/xhttp/router_test.go#L95
Error return value of `http.DefaultClient.Do` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/note): note/internal/infra/dao/daotx.go#L61
SA1032: arguments have the wrong order (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/model/contexts.go#L15
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/model/contexts.go#L20
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/model/sms.go#L17
SA5008: unknown JSON option "optional" (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/model/sms.go#L39
SA5008: unknown JSON option "optional" (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/infra/dep/dep.go#L45
S1000: should use for range instead of for { select {} } (gosimple)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/infra/dao/user_test.go#L31
Error return value of `dao.Delete` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/infra/dao/user_test.go#L59
Error return value of `dao.Delete` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/infra/dao/user_test.go#L90
Error return value of `dao.Delete` is not checked (errcheck)
detect-modules
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/analysis)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/feed)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/api-x)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/relation)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/counter)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/comment)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/misc)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/note)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/asset-job)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum
golangci-lint (/home/runner/work/whimer/whimer/passport)
Restore cache failed: Dependencies file is not found in /home/runner/work/whimer/whimer. Supported file pattern: go.sum