Skip to content

Commit

Permalink
chore: bump golangci-lint to v1.62 (#392)
Browse files Browse the repository at this point in the history
Fix revive lint (redefinition of the built-in type any), and add iface
linter.
  • Loading branch information
tri-adam authored Dec 3, 2024
1 parent fdb9c6e commit d2697c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ executors:
- image: node:22-slim
golangci-lint:
docker:
- image: golangci/golangci-lint:v1.61
- image: golangci/golangci-lint:v1.62
golang-previous:
docker:
- image: golang:1.22
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ linters:
- gosimple
- govet
- grouper
- iface
- ineffassign
- interfacebloat
- intrange
Expand Down
8 changes: 4 additions & 4 deletions pkg/integrity/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ func NewVerifier(f *sif.FileImage, opts ...VerifierOpt) (*Verifier, error) {
}

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

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

0 comments on commit d2697c6

Please sign in to comment.