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/ We have been using 2 space indentation and single quotes with YAML files. Editors which are using the .editorconfig file will change these when editing the files.
Created attachment 115004 [details] [review] Bug 27375: Set YAML file settings in .editorconfig To test: 1) Start an editor that supports .editorconfig. 2) Open YAML file mappings.yaml for example. 3) Format the file. 4) Observe that nothing changes. Sponsored-by: Koha-Suomi Oy
Created attachment 127102 [details] [review] Bug 27375: Set YAML file settings in .editorconfig To test: 1) Start an editor that supports .editorconfig. 2) Open YAML file mappings.yaml for example. 3) Format the file. 4) Observe that nothing changes. Sponsored-by: Koha-Suomi Oy Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Good catch, Johanna. Thanks!
Pushed to master for 21.11, thanks to everybody involved!