Skip to content

Commit d2697c6

Browse files
authored
chore: bump golangci-lint to v1.62 (#392)
Fix revive lint (redefinition of the built-in type any), and add iface linter.
1 parent fdb9c6e commit d2697c6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ executors:
99
- image: node:22-slim
1010
golangci-lint:
1111
docker:
12-
- image: golangci/golangci-lint:v1.61
12+
- image: golangci/golangci-lint:v1.62
1313
golang-previous:
1414
docker:
1515
- image: golang:1.22

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ linters:
2929
- gosimple
3030
- govet
3131
- grouper
32+
- iface
3233
- ineffassign
3334
- interfacebloat
3435
- intrange

pkg/integrity/verify.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ func NewVerifier(f *sif.FileImage, opts ...VerifierOpt) (*Verifier, error) {
538538
}
539539

540540
// fingerprints returns a sorted list of unique fingerprints of entities participating in the
541-
// verification tasks in v. If any is true, entities involved in at least one task are included.
542-
// Otherwise, only entities participatinging in all tasks are included.
543-
func (v *Verifier) fingerprints(any bool) ([][]byte, error) {
541+
// verification tasks in v. If anyTask is true, entities involved in at least one task are
542+
// included. Otherwise, only entities participatinging in all tasks are included.
543+
func (v *Verifier) fingerprints(anyTask bool) ([][]byte, error) {
544544
m := make(map[string]int)
545545

546546
// Build up a map containing fingerprints, and the number of tasks they are participating in.
@@ -563,7 +563,7 @@ func (v *Verifier) fingerprints(any bool) ([][]byte, error) {
563563
// Build up list of fingerprints.
564564
var fps [][]byte
565565
for fp, n := range m {
566-
if any || len(v.tasks) == n {
566+
if anyTask || len(v.tasks) == n {
567567
b, err := hex.DecodeString(fp)
568568
if err != nil {
569569
panic(err)

0 commit comments

Comments
 (0)