Author: dsahlberg
Date: Sun Jun 16 08:08:57 2024
New Revision: 1918362

URL: http://svn.apache.org/viewvc?rev=1918362&view=rev
Log:
Specify guidelines and max_line_length properties from the EditorConfig.

Set the `guidelines` and `max_line_length` properties to 79 symbols from the
EditorConfig file. These properties are not commonly supported by editors [1],
[2]. The value `79 symbols` is described in the community guidelines, so these
properties in the EditorConfig file would help us to follow the rule.

[1] The `max_line_length` property is supported by Emacs, Vim, Neovim, Atom,
JetBrains IDEs, Kakoune, and Prettier.

[2] The `guidelines` property is supported by Visual Studio with
EditorConfig Guidelines or Editor Guidelines extensions.

* .editorconfig:
(guidelines, max_line_length): Set these properties to 79 symbols.
 
Patch by: Timofey Zhakov (tima {at} chemodax _dot_ net)

Discussed on dev@: 
https://lists.apache.org/thread/cp6kb1w03mb7v4g8yq7y9dsmpdyqy42n


Modified:
    subversion/trunk/.editorconfig

Modified: subversion/trunk/.editorconfig
URL: 
http://svn.apache.org/viewvc/subversion/trunk/.editorconfig?rev=1918362&r1=1918361&r2=1918362&view=diff
==============================================================================
--- subversion/trunk/.editorconfig (original)
+++ subversion/trunk/.editorconfig Sun Jun 16 08:08:57 2024
@@ -8,6 +8,14 @@ indent_size = 2
 insert_final_newline = true
 trim_trailing_whitespace = false
 
+# Forces hard line wrapping after the amount of characters specified.
+max_line_length = 79
+
+# Adds guidelines to the editor. This option is unofficial, but it is
+# supported by Visual Studio with EditorConfig Guidelines or Editor
+# Guidelines extensions.
+guidelines = 79 dashed
+
 [**/Makefile*]
 indent_style = tab
 indent_size = 8


Reply via email to