Skip to content

chore(ci): add golangci-lint #8

chore(ci): add golangci-lint

chore(ci): add golangci-lint #8

Triggered via pull request August 16, 2023 05:59
Status Failure
Total duration 31s
Artifacts

lint.yml

on: pull_request
Run linters
21s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Run linters: dependency/vault_read.go#L143
`(*VaultReadQuery).readSecret` - `opts` is unused (unparam)
Run linters: child/child.go#L25
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (staticcheck)
Run linters: dependency/vault_common.go#L84
SA1019: clients.Vault().NewRenewer is deprecated: exists only for backwards compatibility. Calls NewLifetimeWatcher, and sets compatibility flags. (staticcheck)
Run linters: dependency/vault_common.go#L307
SA1019: client.RawRequest is deprecated: RawRequest exists for historical compatibility and should not be used directly. Use client.Logical().ReadRaw(...) or higher level methods instead. (staticcheck)
Run linters
issues found