docs: update contributing/formatting/code
This commit is contained in:
parent
f8a1ddedce
commit
4f8552722e
|
@ -2,7 +2,7 @@
|
||||||
title: Code Standards
|
title: Code Standards
|
||||||
description: Using .editorconfig
|
description: Using .editorconfig
|
||||||
published: true
|
published: true
|
||||||
date: 2024-05-06T20:22:26.149Z
|
date: 2024-05-06T20:27:56.476Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2024-05-05T18:30:37.455Z
|
dateCreated: 2024-05-05T18:30:37.455Z
|
||||||
|
@ -58,6 +58,13 @@ indent_size = 4
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Go
|
||||||
|
Using gofmt
|
||||||
|
```editorconfig
|
||||||
|
[*.{go,mod}]
|
||||||
|
indent_size = 4
|
||||||
|
```
|
||||||
|
|
||||||
## C and Related
|
## C and Related
|
||||||
```editorconfig
|
```editorconfig
|
||||||
[*.{c,cpp,cs,h,hpp,C,H,cxx,hxx}]
|
[*.{c,cpp,cs,h,hpp,C,H,cxx,hxx}]
|
||||||
|
@ -96,7 +103,14 @@ indent_size = 2
|
||||||
|
|
||||||
## JSON, YAML
|
## JSON, YAML
|
||||||
```editorconfig
|
```editorconfig
|
||||||
[*.{json,json5,yaml,yml,webmanifest}]
|
[*.{json,json5,webmanifest}]
|
||||||
|
indent_size = 2
|
||||||
|
```
|
||||||
|
|
||||||
|
## YAML
|
||||||
|
```editorconfig
|
||||||
|
[*.{yaml,yml}]
|
||||||
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -158,5 +172,5 @@ trim_trailing_whitespace = unset
|
||||||
|
|
||||||
```editorconfig
|
```editorconfig
|
||||||
[Makefile]
|
[Makefile]
|
||||||
indent_style = tab
|
indent_size = 2
|
||||||
```
|
```
|
Loading…
Reference in a new issue