Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Mar 2026 07:51:21 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Minsoo Choo <minsoo@minsoo.io>
Subject:   git: 75858ca528bf - main - Add .editorconfig
Message-ID:  <69abd8f9.23dae.41d7461e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=75858ca528bfdef7101ac493baa1b43616c4153c

commit 75858ca528bfdef7101ac493baa1b43616c4153c
Author:     Minsoo Choo <minsoo@minsoo.io>
AuthorDate: 2026-02-15 19:14:28 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-03-07 07:51:15 +0000

    Add .editorconfig
    
    FreeBSD developers use different text editors or sometimes use GUI
    editors such as VSCode or Zed on different platforms for convinence.
    However, there is lack of unified config for those editors to follow
    style(9) including indent rules.
    
    Although most "modern" editors support .editorconfig out of box, basic
    editors such as vim needs a plugin for autoloading .editorconfig file.
    
    Sponsored by:   The FreeBSD Foundation
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/2024
---
 .editorconfig | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000000..14970af1e2dd
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,23 @@
+[{contrib/**,**/contrib/**,kerberos5/**,krb5/**,crypto/**,sys/crypto/openssl/**}]
+ignore = true
+
+[{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Makefile,Makefile.*}]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+indent_size = 8
+
+[*.py]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = space
+indent_size = 4
+
+[*.{yaml,yml}]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = space
+indent_size = 2


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69abd8f9.23dae.41d7461e>