Skip to content

chore(lint): update golangci-lint config #1658

chore(lint): update golangci-lint config

chore(lint): update golangci-lint config #1658

Triggered via pull request January 22, 2026 18:18
Status Failure
Total duration 1m 41s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: datastore/sync_entity.go#L267
captLocal: `ID' should not be capitalized (gocritic)
lint: datastore/datastoretest/mock_datastore.go#L46
captLocal: `ID' should not be capitalized (gocritic)
lint: command/command_test.go#L191
captLocal: `PBSyncAttrs' should not be capitalized (gocritic)
lint: command/command.go#L447
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: datastore/sync_entity.go#L495
cognitive complexity 36 of func `(*Dynamo).UpdateSyncEntity` is high (> 20) (gocognit)
lint: datastore/sync_entity.go#L162
cognitive complexity 24 of func `(*Dynamo).InsertSyncEntity` is high (> 20) (gocognit)
lint: command/command.go#L226
cognitive complexity 61 of func `handleCommitRequest` is high (> 20) (gocognit)
lint: command/command.go#L37
cognitive complexity 61 of func `handleGetUpdatesRequest` is high (> 20) (gocognit)
lint: command/device_limit.go#L17
don't use `init` function (gochecknoinits)
lint: server/server_test.go#L24
nested context in function literal (fatcontext)