From e922e4b3bb6b5765e8562642349769cf34e88e2e Mon Sep 17 00:00:00 2001 From: Max Cherry Date: Fri, 12 Oct 2018 22:17:05 +0300 Subject: [PATCH] editorconfig: added basic config --- .editorconfig | 13 +++++++++++++ README.md | 1 + 2 files changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e53123d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +indent_style = tab +indent_size = 2 +tab_width = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.yml] +indent_style = space diff --git a/README.md b/README.md index 80b39ca..04a7c7e 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,4 @@ Master always contains latest code, so better use some package manager to vendor - Each RTB type should be kept in its own file, named after type - File names are in underscore_case, e.g., `type BidRequest` should be declared in `bid_request.go` - [go fmt your code](https://blog.golang.org/go-fmt-your-code) +- [EditorConfig](https://editorconfig.org/) (not required, but useful)