Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Feb 1, 2021
1 parent 824a51e commit 41a2381
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion internal/collector/domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 41a2381

Please sign in to comment.