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