ReviewDog workflow #1848
reviewdog [Lint Warnings] report
reported by reviewdog 🐶
Findings (33)
idb/postgres/internal/encoding/encoding.go|97 col 68| header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
idb/postgres/internal/encoding/encoding.go|99 col 71| header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
idb/postgres/internal/encoding/encoding.go|105 col 6| res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
idb/postgres/internal/encoding/encoding.go|107 col 6| res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
idb/postgres/internal/encoding/encoding.go|366 col 4| unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|375 col 4| unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|376 col 4| unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|658 col 27| ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
idb/postgres/internal/encoding/encoding.go|667 col 27| ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
idb/postgres/internal/encoding/encoding.go|668 col 27| ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
idb/postgres/internal/encoding/encoding.go|668 col 27| too many errors) (typecheck)
idb/postgres/internal/encoding/encoding.go|97 col 68| header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
idb/postgres/internal/encoding/encoding.go|99 col 71| header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
idb/postgres/internal/encoding/encoding.go|105 col 6| res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
idb/postgres/internal/encoding/encoding.go|107 col 6| res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
idb/postgres/internal/encoding/encoding.go|366 col 4| unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|375 col 4| unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|376 col 4| unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|658 col 27| ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
idb/postgres/internal/encoding/encoding.go|667 col 27| ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
idb/postgres/internal/encoding/encoding.go|668 col 27| ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
idb/postgres/internal/encoding/encoding.go|668 col 27| too many errors) (typecheck)
idb/postgres/internal/encoding/encoding.go|97 col 68| header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
idb/postgres/internal/encoding/encoding.go|99 col 71| header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
idb/postgres/internal/encoding/encoding.go|105 col 6| res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
idb/postgres/internal/encoding/encoding.go|107 col 6| res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
idb/postgres/internal/encoding/encoding.go|366 col 4| unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|375 col 4| unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|376 col 4| unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
idb/postgres/internal/encoding/encoding.go|658 col 27| ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
idb/postgres/internal/encoding/encoding.go|667 col 27| ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
idb/postgres/internal/encoding/encoding.go|668 col 27| ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
idb/postgres/internal/encoding/encoding.go|668 col 27| too many errors) (typecheck)
Filtered Findings (6)
idb/postgres/internal/migrations/convert_account_data/m.go|9 col 2| could not import github.com/algorand/indexer/v3/idb/postgres/internal/encoding (-: # github.com/algorand/indexer/v3/idb/postgres/internal/encoding
idb/postgres/internal/writer/write_txn.go|10 col 2| could not import github.com/algorand/indexer/v3/idb/postgres/internal/encoding (-: # github.com/algorand/indexer/v3/idb/postgres/internal/encoding
idb/postgres/postgres.go|27 col 2| could not import github.com/algorand/indexer/v3/idb/postgres/internal/encoding (-: # github.com/algorand/indexer/v3/idb/postgres/internal/encoding
util/test/account_testutil.go|61 col 2| SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
config/datadir.go|5 col 2| SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
util/util.go|7 col 2| SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
Annotations
Check failure on line 97 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L97
header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Raw output
idb/postgres/internal/encoding/encoding.go:97:68: header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Check failure on line 99 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L99
header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Raw output
idb/postgres/internal/encoding/encoding.go:99:71: header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Check failure on line 105 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L105
res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Raw output
idb/postgres/internal/encoding/encoding.go:105:6: res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Check failure on line 107 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L107
res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Raw output
idb/postgres/internal/encoding/encoding.go:107:6: res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Check failure on line 366 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L366
unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Raw output
idb/postgres/internal/encoding/encoding.go:366:4: unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Check failure on line 375 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L375
unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Raw output
idb/postgres/internal/encoding/encoding.go:375:4: unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Check failure on line 376 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L376
unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Raw output
idb/postgres/internal/encoding/encoding.go:376:4: unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Check failure on line 658 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L658
ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
Raw output
idb/postgres/internal/encoding/encoding.go:658:27: ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
Check failure on line 667 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L667
ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
Raw output
idb/postgres/internal/encoding/encoding.go:667:27: ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
Check failure on line 668 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L668
ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
Raw output
idb/postgres/internal/encoding/encoding.go:668:27: ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
Check failure on line 668 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L668
too many errors) (typecheck)
Raw output
idb/postgres/internal/encoding/encoding.go:668:27: too many errors) (typecheck)
"github.com/algorand/indexer/v3/idb/postgres/internal/encoding"
^
Check failure on line 97 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L97
header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Raw output
idb/postgres/internal/encoding/encoding.go:97:68: header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Check failure on line 99 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L99
header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Raw output
idb/postgres/internal/encoding/encoding.go:99:71: header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Check failure on line 105 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L105
res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Raw output
idb/postgres/internal/encoding/encoding.go:105:6: res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Check failure on line 107 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L107
res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Raw output
idb/postgres/internal/encoding/encoding.go:107:6: res.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Check failure on line 366 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L366
unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Raw output
idb/postgres/internal/encoding/encoding.go:366:4: unknown field IncentiveEligible in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Check failure on line 375 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L375
unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Raw output
idb/postgres/internal/encoding/encoding.go:375:4: unknown field LastProposed in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Check failure on line 376 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L376
unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Raw output
idb/postgres/internal/encoding/encoding.go:376:4: unknown field LastHeartbeat in struct literal of type "github.com/algorand/go-algorand-sdk/v2/types".AccountBaseData
Check failure on line 658 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L658
ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
Raw output
idb/postgres/internal/encoding/encoding.go:658:27: ad.IncentiveEligible undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method IncentiveEligible)
Check failure on line 667 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L667
ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
Raw output
idb/postgres/internal/encoding/encoding.go:667:27: ad.LastProposed undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastProposed)
Check failure on line 668 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L668
ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
Raw output
idb/postgres/internal/encoding/encoding.go:668:27: ad.LastHeartbeat undefined (type "github.com/algorand/go-algorand-sdk/v2/types".AccountData has no field or method LastHeartbeat)
Check failure on line 668 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L668
too many errors) (typecheck)
Raw output
idb/postgres/internal/encoding/encoding.go:668:27: too many errors) (typecheck)
"github.com/algorand/indexer/v3/idb/postgres/internal/encoding"
^
Check failure on line 97 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L97
header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Raw output
idb/postgres/internal/encoding/encoding.go:97:68: header.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Check failure on line 99 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L99
header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Raw output
idb/postgres/internal/encoding/encoding.go:99:71: header.AbsentParticipationAccounts undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method AbsentParticipationAccounts)
Check failure on line 105 in idb/postgres/internal/encoding/encoding.go
github-actions / Lint Warnings
[Lint Warnings] idb/postgres/internal/encoding/encoding.go#L105
res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)
Raw output
idb/postgres/internal/encoding/encoding.go:105:6: res.Proposer undefined (type "github.com/algorand/go-algorand-sdk/v2/types".BlockHeader has no field or method Proposer)