diff options
author | David Snopek <dsnopek@gmail.com> | 2024-06-25 09:43:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 09:43:36 -0500 |
commit | 7abe4ca9e408663abad9284013d9aeef3a578522 (patch) | |
tree | 3bea346802c115a6e2d74f34bb3505fa74fd6c33 | |
parent | 316dde80ba7637b3dd0a48b4a841f5a2366ddf41 (diff) | |
parent | 7a96d0314e86dd093c7606cd4c55d984377dd325 (diff) | |
download | redot-cpp-7abe4ca9e408663abad9284013d9aeef3a578522.tar.gz |
Merge pull request #1506 from Repiteo/editorconfig
Add `.editorconfig`, consolidate `.gitattributes`
-rw-r--r-- | .editorconfig | 16 | ||||
-rw-r--r-- | .gitattributes | 8 |
2 files changed, 18 insertions, 6 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f14ac7f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +[{*.py,SConstruct}] +indent_style = space + +[*.{yml,yaml}] +indent_size = 2 +indent_style = space diff --git a/.gitattributes b/.gitattributes index 9abe13e..d2f18e0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,2 @@ -*.c eol=lf -*.cpp eol=lf -*.gd eol=lf -*.tscn eol=lf -*.cfg eol=lf -*.godot eol=lf +# Normalize EOL for all files that Git considers text files +* text=auto eol=lf |