initial commit of multiple .editorconfig & .gitattributes files

This commit is contained in:
Aminda Suomalainen 2023-02-12 16:23:09 +02:00
parent da21f38b01
commit 58a67d2214
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
6 changed files with 36 additions and 0 deletions

11
.editorconfig Normal file
View File

@ -0,0 +1,11 @@
root = true
[*]
# Future: https://github.com/editorconfig/editorconfig/issues/89
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
indent_style = tab
indent_size = tab
#tab_width =

5
.gitattributes vendored Normal file
View File

@ -0,0 +1,5 @@
# Line ending normalisatsion
* text=auto
# bash scripts are most likely ran on Linux so they have lf endings
*.bash text eol=lf

4
bash/.editorconfig Normal file
View File

@ -0,0 +1,4 @@
root = false
[*]
end_of_line = lf

1
bash/.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto eol=lf

6
python/.editorconfig Normal file
View File

@ -0,0 +1,6 @@
root = false
[*]
# https://peps.python.org/pep-0008/#indentation
indent_style = space
indent_size = 4

9
ruby/.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = false
[*]
# Unofficial Ruby Style guide says two spaces, but Wikipedia says it doesn't
# matter so I am going accessibility first and having this commented
# which will lead editors looking at ../.editorconfig
# https://rubystyle.guide/#spaces-indentation
#indent_style = space
#indent_size = 2