]> granicus.if.org Git - pgbadger/commitdiff
Add editorconfig configuration
authorÉtienne BERSAC <etienne.bersac@dalibo.com>
Tue, 19 Sep 2017 14:42:22 +0000 (16:42 +0200)
committerÉtienne BERSAC <etienne.bersac@dalibo.com>
Wed, 20 Sep 2017 07:31:54 +0000 (09:31 +0200)
.editorconfig [new file with mode: 0644]
CONTRIBUTING.md

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..31751ad
--- /dev/null
@@ -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
index 8341ef1428b49368aca2bfcc41ddadcaa3069b3e..312bf81584c69826939270239bcc37121f845427 100644 (file)
@@ -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!