Skip to content

regexpMust: for const patterns like v3PeerRegex, use regexp.MustCompile (gocritic) linting error #96

@atc0005

Description

@atc0005

This linting error was surfaced from an upgraded golangci-lint:

internal/lockss/peers.go:82:25: regexpMust: for const patterns like v3PeerRegex, use regexp.MustCompile (gocritic)
	re, regExCompileErr := regexp.Compile(v3PeerRegex)
	                       ^
make: *** [Makefile:114: linting] Error 1
Error: Process completed with exit code 2.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglinting

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions