From 162c6aeb2da79308966e9194d8c7fcff4c9499d3 Mon Sep 17 00:00:00 2001 From: "Arnaud (Arhuman) ASSAD" Date: Fri, 6 May 2022 10:00:46 +0200 Subject: [PATCH] Add editorconfig file and check in pipeline --- .drone.yml | 2 ++ .editorconfig | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .editorconfig 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