From 736df238aa631d3089fa75e1b9c18a676a17f6d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89tienne=20BERSAC?= Date: Tue, 19 Sep 2017 16:42:22 +0200 Subject: [PATCH] Add editorconfig configuration --- .editorconfig | 16 ++++++++++++++++ CONTRIBUTING.md | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..31751ad --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +charset = utf-8 +indent_style = tab +indent_size = 8 +# Unix-style newlines +end_of_line = lf +# Remove any whitespace characters preceding newline characters +trim_trailing_whitespace = true +# Newline ending every file +insert_final_newline = true + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8341ef1..312bf81 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,3 +7,9 @@ 2. Look at the [closed issues](https://github.com/dalibo/pgbadger/issues?state=closed), we may have already answered a similar problem 3. [Read the doc](http://dalibo.github.com/pgbadger/). It is short and useful. + + +## Coding style + +pgBadger project provides a [.editorconfig](http://editorconfig.org/) file to +setup consistent spacing in files. Please follow it! -- 2.40.0