fix: cmd failure if user is not sudoer (#1663) #8
Annotations
10 errors and 11 warnings
lint:
pkg/models/const.go#L103
`flagUnsigned` is unused (deadcode)
|
lint:
pkg/models/const.go#L104
`statusMoreResultsExists` is unused (deadcode)
|
lint:
pkg/models/const.go#L148
`mySQLfieldTypeNames` is unused (deadcode)
|
lint:
pkg/models/const.go#L177
`columnTypeValues` is unused (deadcode)
|
lint:
pkg/models/const.go#L242
`fieldTypeNames` is unused (deadcode)
|
lint:
pkg/models/postgres.go#L103
`minStartupPacketLen` is unused (deadcode)
|
lint:
pkg/models/postgres.go#L104
`maxStartupPacketLen` is unused (deadcode)
|
lint:
pkg/models/postgres.go#L105
`sslRequestNumber` is unused (deadcode)
|
lint:
pkg/models/postgres.go#L106
`cancelRequestCode` is unused (deadcode)
|
lint:
pkg/models/postgres.go#L107
`gssEncReqNumber` is unused (deadcode)
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint:
pkg/hooks/structs/structs.go#L92
var-naming: don't use underscores in Go names; type Bpf_spin_lock should be BpfSpinLock (revive)
|
lint:
pkg/hooks/structs/structs.go#L104
var-naming: struct field IpVersion should be IPVersion (revive)
|
lint:
pkg/hooks/structs/structs.go#L105
var-naming: struct field DestIp4 should be DestIP4 (revive)
|
lint:
pkg/hooks/structs/enums.go#L12
exported: exported const EgressTraffic should have comment (or a comment on this block) or be unexported (revive)
|
lint:
pkg/hooks/structs/enums.go#L1
package-comments: should have a package comment (revive)
|
lint:
pkg/hooks/structs/structs.go#L106
var-naming: struct field DestIp6 should be DestIP6 (revive)
|
lint:
pkg/hooks/structs/structs.go#L120
var-naming: struct field Ip6 should be IP6 (revive)
|
lint:
pkg/hooks/structs/structs.go#L34
exported: comment on exported const EventBodyMaxSize should be of the form "EventBodyMaxSize ..." (revive)
|
lint:
pkg/hooks/structs/structs.go#L51
exported: comment on exported type SocketDataEvent should be of the form "SocketDataEvent ..." (with optional leading article) (revive)
|
lint:
pkg/platform/interface.go#L13
var-naming: interface method parameter lastSeenId should be lastSeenID (revive)
|