diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..d207b1802 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.go text eol=lf diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cc18c009a..4f3a8bcf2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,6 +15,9 @@ jobs: with: run: | make convention + echo '=====' + gofmt -d . + echo '=====' # TODO: use gofmt linter test "$(gofmt -l . | wc -l)" -eq 0 test: diff --git a/.gitignore b/.gitignore index 43868cb9c..65ea65feb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ !.circleci !.dependabot !.github +!.gitattributes !.gitignore !.goxc.json !.travis.yml