Skip to content

Commit

Permalink
Add gitattributes
Browse files Browse the repository at this point in the history
For the satisfaction of golangci-lint, go files should have LF line endings.

Since the integrity of the test data is important, the metadata files should
be marked as binary to prevent git from mangling them.

Signed-off-by: Torin Carey <[email protected]>
  • Loading branch information
torin-carey committed Jul 20, 2022
1 parent 7e8280b commit 4dd57eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# go enforces lf line endings
*.go eol=lf

# testdata should not be mangled by git
*.json binary

0 comments on commit 4dd57eb

Please sign in to comment.