1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +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 .PHONY: format
format: format:
find . -iname *.h -o -iname *.c | xargs clang-format -i -style=file 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 .PHONY: tidy
tidy: require_scheme tidy: require_scheme