From Bug 12545 >> It'd be usefull to have a .editorconfig [1] file, that enforces some of our >> coding guidelines, in the source tree top level. >> >> Those developers that have their editors configured to honour the file, will >> benefit. Those that wouldn't use it, won't get bothered by the addition. So, a >> harmless addition that would benefit those that are interested. >> >> There are plugins for several major editors: >> - Emacs >> - Vim >> - SublimeText >> - and so on... >> >> [1] http://editorconfig.org/ Editors using .editorconfig by default set 4 space indentation in JSON files although we have typically been using 2 spaces.
Created attachment 99860 [details] [review] Bug 24774: Set JSON indentation of 2 spaces in .editorconfig To test: 1. Start an editor that supports .editorconfig 2. Open or create a JSON file 3. Observe identation is set to 2 spaces by default Sponsored-by: Hypernova Oy
Created attachment 100280 [details] [review] Bug 24774: Set JSON indentation of 2 spaces in .editorconfig To test: 1. Start an editor that supports .editorconfig 2. Open or create a JSON file 3. Observe identation is set to 2 spaces by default Sponsored-by: Hypernova Oy Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 100826 [details] [review] Bug 24774: Set JSON indentation of 2 spaces in .editorconfig To test: 1. Start an editor that supports .editorconfig 2. Open or create a JSON file 3. Observe identation is set to 2 spaces by default Sponsored-by: Hypernova Oy Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Nice work everyone! Pushed to master for 20.05
enhancement not backported to 19.11.x