Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump golangci-lint to v1.62 #392

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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