build: bump github.com/stretchr/testify from 1.9.0 to 1.10.0 #70
Annotations
10 errors and 11 warnings
lint:
cmd/commands/import.go#L47
Error return value of `json.Unmarshal` is not checked (errcheck)
|
lint:
cmd/root.go#L65
Error return value of `database.DB.Update` is not checked (errcheck)
|
lint:
cmd/commands/import.go#L32
unnecessary conversion (unconvert)
|
lint:
main.go#L37
unnecessary conversion (unconvert)
|
lint:
main.go#L38
unnecessary conversion (unconvert)
|
lint:
internal/must/must.go#L13
unnecessary leading newline (whitespace)
|
lint:
main.go#L32
unnecessary leading newline (whitespace)
|
lint:
internal/secutiry/rsa_util.go#L58
SA1019: x509.IsEncryptedPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext. (staticcheck)
|
lint:
internal/secutiry/rsa_util.go#L63
SA1019: x509.DecryptPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext. (staticcheck)
|
lint:
internal/secutiry/rsa_util.go#L77
SA1019: x509.IsEncryptedPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext. (staticcheck)
|
lint:
internal/version/version.go#L4
exported: exported const UnknownVersion should have comment (or a comment on this block) or be unexported (revive)
|
lint:
internal/version/version.go#L20
exported: exported function AppVersion should have comment or be unexported (revive)
|
lint:
internal/database/database.go#L9
exported: exported const Bucket should have comment (or a comment on this block) or be unexported (revive)
|
lint:
cmd/commands/ttl.go#L14
var-naming: var TtlCmd should be TTLCmd (revive)
|
lint:
cmd/commands/ttl.go#L33
var-naming: don't use underscores in Go names; var temp_ttl should be tempTTL (revive)
|
lint:
cmd/commands/get.go#L28
empty-block: this block is empty, you can remove it (revive)
|
lint:
cmd/commands/export.go#L27
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
lint:
cmd/commands/list.go#L23
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
lint:
internal/secutiry/rsa_util.go#L24
var-naming: don't use underscores in Go names; func RSA_GenerateKey should be RSAGenerateKey (revive)
|
lint:
internal/secutiry/rsa_util.go#L110
var-naming: don't use underscores in Go names; func RSA_OAEP_Encrypt should be RSAOAEPEncrypt (revive)
|
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/kvstok/kvstok. Supported file pattern: go.sum
|