diff --git a/.drone.yml b/.drone.yml index 2d7d489..bf31f69 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,8 @@ kind: pipeline name: default steps: +- name: Check editorconfig compliance + image: mstruebing/editorconfig-checker - name: test image: rust:1.60 commands: diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c5a9bb9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*.rs] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +indent_style = space +indent_size = 4