From ffc6b597529a047bc9fec250d6ce3653bfbfe695 Mon Sep 17 00:00:00 2001 From: Brian Butz Date: Mon, 20 Jul 2020 15:57:12 +0100 Subject: [PATCH] Introduce .editorconfig for ruby files Many editors and IDEs will leverage an .editorconfig out of the box This basic configuration for ruby files tells the editor to behave per how rubocop is configured to handle whitespace --- .editorconfig | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..a0730272ee7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*.rb] +insert_final_newline = true +trim_trailing_whitespace = true