[PATCH v2] Add .editorconfig file

Michael Stefaniuc mstefani at winehq.org
Wed Dec 12 14:28:16 CST 2018


Hello Eberhard,

tab_width needs to be 8. That's a given.
For exiting code the style of the surrounding code trumps. So the indent
and line length settings are just the recommendations for new code but
not necessary true for all files in Wine.

The important question though is:
What will the editors / IDE do with this file?
Will they automatically start to re-indent the whole file being edited
if they see .editorconfig?
That would be counterproductive as unrelated whitespace changes are not
allowed. Of course fixing whitespace issues in modified lines is wanted
and sometimes even expected, depending on the subsystem maintainer.

bye
	michael


On 12/12/18 10:14 AM, Eberhard Beilharz wrote:
> This allows editors and IDEs to automatically adjust settings to
> the coding style prefered by Wine (cf. https://editorconfig.org/).
> 
> Signed-off-by: Eberhard Beilharz <eb1 at sil.org>
> ---
>  .editorconfig | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>  create mode 100644 .editorconfig
> 
> diff --git a/.editorconfig b/.editorconfig
> new file mode 100644
> index 0000000000..71dc8633f8
> --- /dev/null
> +++ b/.editorconfig
> @@ -0,0 +1,11 @@
> +root = true
> +
> +# Defaults
> +[*]
> +indent_style = space
> +indent_size = 4
> +tab_width = 4
> +charset = utf-8
> +trim_trailing_whitespace = true
> +insert_final_newline = false
> +max_line_length = 100
> 




More information about the wine-devel mailing list