Skip to content

golangci-lint golangci-lint # #48

golangci-lint golangci-lint #

golangci-lint golangci-lint # #48

Triggered via push February 2, 2025 06:12
Status Success
Total duration 2m 41s
Artifacts
detect-modules
7s
detect-modules
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

55 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/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/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/biz/comment.go#L132
Error return value of `.IncrReplyCount` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/comment): comment/internal/biz/comment.go#L223
Error return value of `.DecrReplyCount` is not checked (errcheck)
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/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/note): note/internal/biz/creator.go#L148
SA1032: arguments have the wrong order (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/note): note/internal/biz/creator.go#L199
SA1032: arguments have the wrong order (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/note): note/internal/biz/creator.go#L219
SA1032: arguments have the wrong order (staticcheck)
golangci-lint (/home/runner/work/whimer/whimer/note): note/internal/biz/note.go#L128
SA4010: this result of append is never used, except maybe in other appends (staticcheck)
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/slices/batch_test.go#L10
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/misc): misc/xerror/wrap.go#L33
var `emptyFrames` is unused (unused)
golangci-lint (/home/runner/work/whimer/whimer/misc): misc/xcache/redis.go#L51
func `getOptDefault` is unused (unused)
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)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/model/session_test.go#L32
Error return value of `ser.Serialize` is not checked (errcheck)
golangci-lint (/home/runner/work/whimer/whimer/passport): passport/internal/model/session_test.go#L43
Error return value of `ser.Serialize` is not checked (errcheck)
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/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)
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/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/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/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/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/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