From: vrana Date: Thu, 1 Nov 2012 18:33:58 +0000 (-0700) Subject: Specify config for text editors X-Git-Tag: conduit-6~43 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=317cf6fc36344ad952ae7a98255fb40c64343059;p=arcanist.git Specify config for text editors Summary: This is sort of documentation. Test Plan: Used the plugin for Notepad++ with default indent of 4 spaces. Opened file from `src/`, verified that it indents 2 spaces. Opened file from `externals/`, verified that it indents 4 spaces. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3865 --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cb3e2fa0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +; http://editorconfig.org/ + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[src/parser/__tests__/bundle/*] +trim_trailing_whitespace = false +insert_final_newline = false + +[src/parser/__tests__/diff/*] +trim_trailing_whitespace = false +insert_final_newline = false + +[src/parser/__tests__/patches/*] +trim_trailing_whitespace = false +insert_final_newline = false + +[externals/**] +; Use editor default (possible autodetection). +indent_style = +indent_size = +trim_trailing_whitespace = false +insert_final_newline = false