Skip to content

chore: add .editorconfig and .gitattributes #56

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 2 commits into from
Jun 15, 2023
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
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[*]
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
indent_size = 2

#shell_variant = posix # like -ln=posix
#binary_next_line = true # like -bn
switch_case_indent = true # like -ci
space_redirects = true # like -sr
#keep_padding = true # like -kp
47 changes: 47 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
.astyleignore text eol=lf
.astylerc text eol=lf
.codespellignore text eol=lf
.codespellrc 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
*.cfg 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
*.patch 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.
*.jpg binary
*.pdf binary
*.png binary