Skip to content

Commit

Permalink
chore: add version.txt to .gitattributes for style (#966)
Browse files Browse the repository at this point in the history
* chore: add version.txt to .gitattributes for style

The Knative style check uses linguist to determine if a given file is a
generated file. If so, it excludes that file from the check. This change
should prevent Knative's style check from complaining about no newline on
version.txt

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: also add zz_filessytem_generated.go

Signed-off-by: Lance Ball <lball@redhat.com>
  • Loading branch information
lance committed Apr 11, 2022
1 parent 7121e1f commit 23d1188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
testdata/repository-a.git/objects/*/* ignore-lint=true
testdata/repository.git/objects/*/* ignore-lint=true

version.txt linguist-generated=true
zz_filesystem_generated.go linguist-generated=true

0 comments on commit 23d1188

Please sign in to comment.