chore(lint): update golangci-lint config #1645
Annotations
10 errors
|
lint:
command/command_test.go#L181
captLocal: `PBSyncAttrs' should not be capitalized (gocritic)
|
|
lint:
command/command.go#L448
ifElseChain: rewrite if-else to switch statement (gocritic)
|
|
lint:
datastore/instrumented_datastore.go#L46
string `error` has 11 occurrences, make it a constant (goconst)
|
|
lint:
cache/instrumented_redis.go#L47
string `error` has 5 occurrences, make it a constant (goconst)
|
|
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#L227
cognitive complexity 61 of func `handleCommitRequest` is high (> 20) (gocognit)
|
|
lint:
command/command.go#L38
cognitive complexity 61 of func `handleGetUpdatesRequest` is high (> 20) (gocognit)
|
|
lint:
server/server_test.go#L24
nested context in function literal (fatcontext)
|
|
lint:
command/export_test.go#L1
the average complexity for the package command is 11.750000, max is 10.000000 (cyclop)
|