From 58a67d22149f028588a9ebd9f603d46c21ab722f Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 12 Feb 2023 16:23:09 +0200 Subject: [PATCH] initial commit of multiple .editorconfig & .gitattributes files --- .editorconfig | 11 +++++++++++ .gitattributes | 5 +++++ bash/.editorconfig | 4 ++++ bash/.gitattributes | 1 + python/.editorconfig | 6 ++++++ ruby/.editorconfig | 9 +++++++++ 6 files changed, 36 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 bash/.editorconfig create mode 100644 bash/.gitattributes create mode 100644 python/.editorconfig create mode 100644 ruby/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..41eb72a --- /dev/null +++ b/.editorconfig @@ -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 = diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9475bd8 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/bash/.editorconfig b/bash/.editorconfig new file mode 100644 index 0000000..ab443df --- /dev/null +++ b/bash/.editorconfig @@ -0,0 +1,4 @@ +root = false + +[*] +end_of_line = lf diff --git a/bash/.gitattributes b/bash/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/bash/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/python/.editorconfig b/python/.editorconfig new file mode 100644 index 0000000..df12f8c --- /dev/null +++ b/python/.editorconfig @@ -0,0 +1,6 @@ +root = false + +[*] +# https://peps.python.org/pep-0008/#indentation +indent_style = space +indent_size = 4 diff --git a/ruby/.editorconfig b/ruby/.editorconfig new file mode 100644 index 0000000..24e9bdd --- /dev/null +++ b/ruby/.editorconfig @@ -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