From: Étienne BERSAC Date: Tue, 19 Sep 2017 14:42:22 +0000 (+0200) Subject: Add editorconfig configuration X-Git-Tag: v10.0~35^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=736df238aa631d3089fa75e1b9c18a676a17f6d0;p=pgbadger Add editorconfig configuration --- 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!