1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 15:39:07 +00:00

Handle whitespace via gitattributes

This commit is contained in:
Thom Wiggers 2019-01-16 11:28:00 +01:00
parent 7028025eb9
commit 729efea957
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363
2 changed files with 3 additions and 4 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
* text=auto
*.[ch] text whitespace=fix
*.yaml text whitespace=fix

View File

@ -18,10 +18,6 @@ clean:
.PHONY: format
format:
find . -iname *.h -o -iname *.c | xargs clang-format -i -style=file
ifneq (,$(shell which dos2unix))
# TODO should we make this mandatory?
find . -iname *.h -o -iname *.c | xargs dos2unix -q
endif
.PHONY: tidy
tidy: require_scheme