From 65f18565f1ab29a360d1e95ea7dd6a872e0d3df9 Mon Sep 17 00:00:00 2001 From: Anjandev Momi Date: Sun, 8 Nov 2020 19:17:48 -0500 Subject: [PATCH] add editorconfig and editorconfig check --- .build.yml | 4 ++++ .editorconfig | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .editorconfig diff --git a/.build.yml b/.build.yml index 25b7b40..73aa129 100644 --- a/.build.yml +++ b/.build.yml @@ -1,9 +1,13 @@ image: alpine/edge packages: - shellcheck + - editorconfig-checker sources: - https://git.sr.ht/~mil/sxmo-utils tasks: - shellcheck: | cd sxmo-utils shellcheck scripts/*/* + - editorconfig-check: | + cd sxmo-utils + ec diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1738e7a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +indent_style = tab +max_line_length = 72 +spaces_around_operators = true +charset = utf-8 +trim_trailing_whitespace = true