datatables cs2: rewrite player equipment tracking #980
Annotations
8 errors and 1 warning
pkg/demoinfocs/datatables.go#L692
[golangci-lint] reported by reviewdog 🐶
declarations should never be cuddled (wsl)
Raw Output:
pkg/demoinfocs/datatables.go:692:2: declarations should never be cuddled (wsl)
var inventorySize uint64 = 64
^
|
pkg/demoinfocs/datatables.go#L693
[golangci-lint] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)
Raw Output:
pkg/demoinfocs/datatables.go:693:2: assignments should only be cuddled with other assignments (wsl)
playerInventory := make(map[int]*common.Equipment)
^
|
pkg/demoinfocs/datatables.go#L698
[golangci-lint] reported by reviewdog 🐶
only one cuddle assignment allowed before if statement (wsl)
Raw Output:
pkg/demoinfocs/datatables.go:698:3: only one cuddle assignment allowed before if statement (wsl)
if wep == nil {
^
|
pkg/demoinfocs/datatables.go#L709
[golangci-lint] reported by reviewdog 🐶
for statements should only be cuddled with assignments used in the iteration (wsl)
Raw Output:
pkg/demoinfocs/datatables.go:709:3: for statements should only be cuddled with assignments used in the iteration (wsl)
for i := uint64(0); i < inventorySize; i++ {
^
|
pkg/demoinfocs/datatables.go#L718
[golangci-lint] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)
Raw Output:
pkg/demoinfocs/datatables.go:718:3: assignments should only be cuddled with other assignments (wsl)
pl.Inventory = inventory
^
|
pkg/demoinfocs/datatables.go#L744
[golangci-lint] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)
Raw Output:
pkg/demoinfocs/datatables.go:744:6: assignments should only be cuddled with other assignments (wsl)
pl.Inventory[int(entityID)] = wep
^
|
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading