From 4f8552722ee3b971ba49b70ff983bec97ae0feb8 Mon Sep 17 00:00:00 2001 From: "coded (Samuel Shuert)" Date: Mon, 6 May 2024 20:27:57 +0000 Subject: [PATCH] docs: update contributing/formatting/code --- contributing/formatting/code.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/contributing/formatting/code.md b/contributing/formatting/code.md index cf43c6d..30d5c33 100644 --- a/contributing/formatting/code.md +++ b/contributing/formatting/code.md @@ -2,7 +2,7 @@ title: Code Standards description: Using .editorconfig published: true -date: 2024-05-06T20:22:26.149Z +date: 2024-05-06T20:27:56.476Z tags: editor: markdown dateCreated: 2024-05-05T18:30:37.455Z @@ -58,6 +58,13 @@ indent_size = 4 insert_final_newline = false ``` +## Go +Using gofmt +```editorconfig +[*.{go,mod}] +indent_size = 4 +``` + ## C and Related ```editorconfig [*.{c,cpp,cs,h,hpp,C,H,cxx,hxx}] @@ -96,7 +103,14 @@ indent_size = 2 ## JSON, YAML ```editorconfig -[*.{json,json5,yaml,yml,webmanifest}] +[*.{json,json5,webmanifest}] +indent_size = 2 +``` + +## YAML +```editorconfig +[*.{yaml,yml}] +indent_style = space indent_size = 2 ``` @@ -158,5 +172,5 @@ trim_trailing_whitespace = unset ```editorconfig [Makefile] -indent_style = tab +indent_size = 2 ``` \ No newline at end of file