diff --git a/Makefile b/Makefile index 171fc76..c672e55 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,10 @@ cover: test go tool cover -html=coverage.out fmt: - find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done + find . -name '*.go' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done lint: - golangci-lint run --tests=false --enable-all --disable wsl --disable gomnd --disable goerr113 --disable nlreturn --disable godot ./... + golangci-lint run ./... ci: lint test diff --git a/internal/collector/domain_test.go b/internal/collector/domain_test.go index a0b4f8e..a700970 100644 --- a/internal/collector/domain_test.go +++ b/internal/collector/domain_test.go @@ -29,7 +29,7 @@ func TestNotExpired(t *testing.T) { testCollector(t, NewDomainCollector(multi, "goreleaser.com"), func(t *testing.T, status int, body string) { require.Equal(t, 200, status) require.Contains(t, body, "domain_probe_success 1") - require.Regexp(t, regexp.MustCompile("domain_expiry_days \\d+"), body) + require.Regexp(t, regexp.MustCompile(`domain_expiry_days \d+`), body) }) }