From c785b22b7331a0d7e897e5bcd7d6b4b8c9752a0d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 12 Dec 2023 16:46:42 +0100 Subject: [PATCH] chore: cleanup editorconfig and add linting (#210) --- .drone.yml | 5 ++++- .editorconfig | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.drone.yml b/.drone.yml index 9d53fb7..f16d676 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,10 @@ platform: arch: amd64 steps: - - name: lint + - name: lint-editorconfig + image: docker.io/mstruebing/editorconfig-checker + + - name: lint-golang image: docker.io/golang:1.21 commands: - make lint diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2c4ffab --- /dev/null +++ b/.editorconfig @@ -0,0 +1,26 @@ +# https://editorconfig.org/ + +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[Makefile] +indent_style = tab +indent_size = 4 + +[*.{go,mod}] +indent_style = tab +tab_width = 4 + +[*.star] +indent_style = space +indent_size = 4 + +[LICENSE] +indent_size = unset