From 41a2381cb861e41924025c2362232fabeaa9c33e Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Mon, 1 Feb 2021 10:17:58 -0300 Subject: [PATCH] fix: lint issues Signed-off-by: Carlos Alexandro Becker --- Makefile | 4 ++-- internal/collector/domain_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }) }