Commit Graph

2 Commits

Author SHA1 Message Date
Paul Holzinger d240865a45 lint: update golangci-lint to v1.56.2
Adds a couple of new linters with many new warnings:
- perfsprint (fixed in code, excluded for tests)
- revive (fix the problems, disabled the dot import check as we use it
  for ginkgo)
- inamedparam (disabled because it is opinionated)
- testifylint (great linter but we have like 1000+ issues that I have no
  time fixing now)

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-05 18:10:32 +01:00
Valentin Rothberg 3fe70a8c82 add pkg/flag from Skopeo
Add pkg/flag to properly parse optional bools.  Skopeo is using this
code in `cmd/skopeo` for parsing the `--tls-verify` flag.  Moving the
code into a new package here allows for code share.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-10-26 14:36:11 +02:00