-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
* Add gofmt to CI * Apply gofmt -s * Add check job to CI * Install go-fmt-fail * Revert "Add check job to CI" This reverts commit f923bc2. * Fix Makefile fmt command * Add .gitattributes
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.go text eol=lf |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
export GOFLAGS = -mod=vendor | ||
|
||
default: test | ||
|
||
fmt: | ||
go run github.com/mh-cbon/go-fmt-fail ./... | ||
|
||
test: | ||
go test -mod=vendor -v -cover ./... | ||
go test -v -cover ./... | ||
|
||
.PHONY: test | ||
.PHONY: fmt test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// +build tools | ||
|
||
package main | ||
|
||
import _ "github.com/mh-cbon/go-fmt-fail" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.