Skip to content

Force LF line endings #1021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.sh]
# like -i=2
indent_style = space
Expand Down
47 changes: 35 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,41 @@

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.cpp text
*.h text
*.s text
*.S text
*.ld text
*.txt text
*.xml text
*.py text
*.md text
*.json text
.astyleignore text eol=lf
.astylerc text eol=lf
.editorconfig text eol=lf
.flake8 text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf

*.adoc text eol=lf
*.c text eol=lf
*.cmake text eol=lf
*.cpp text eol=lf
*.css text eol=lf
*.dtsi text eol=lf
*.gv text eol=lf
*.h text eol=lf
*.html text eol=lf
*.in text eol=lf
*.ino text eol=lf
*.json text eol=lf
*.ld text eol=lf
*.md text eol=lf
*.MD text eol=lf
*.old text eol=lf
*.pde text eol=lf
*.properties text eol=lf
*.py text eol=lf
*.s text eol=lf
*.S text eol=lf
*.sh text eol=lf
*.spec text eol=lf
*.txt text eol=lf
*.yml text eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.pdf binary
*.png binary

1 change: 1 addition & 0 deletions CI/astyle/.astylerc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ style=kr
# 2 spaces, convert tabs to spaces
indent=spaces=2
convert-tabs
lineend=linux

# Indent switches and cases
indent-classes
Expand Down