From e040ff2025890686acb47d88b3bf71ab26d6b9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Br=C3=A9dif?= Date: Mon, 13 Feb 2017 00:05:58 +0100 Subject: [PATCH] editorconfig setup, eclint check in travis --- .editorconfig | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 5 ++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..60b5946 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,37 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# tab indentation +[**.{c,h,c.in,hpp,cpp}] +indent_style = tab +indent_size = 4 +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true + +[sort_r.h] +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true + +[**.{sql.in,sql}] +indent_style = tab +indent_size = 4 +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true + + + +# Matches the exact file .travis.yml +[.travis.yml] +indent_style = space +indent_size = 2 + diff --git a/.travis.yml b/.travis.yml index f561e8e..da19883 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,10 @@ install: addons: postgresql: "9.3" # for "installcheck" -before_script: ./autogen.sh +before_script: + - npm install -g eclint + - eclint check * */* */cunit/* + - ./autogen.sh script: - ./configure CFLAGS="-Wall -O2 -g" --with-lazperf=/usr/local/