Skip to content

Commit

Permalink
.editorconfig: Add a .editorconfig file for consistent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Nov 27, 2020
1 parent e6e99d6 commit da4fa0b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.go]
indent_style = tab
; mimic gofmt's go/printer.printer.funcBody().maxSize
max_line_length = 100
; mimic gofmt's cmd/gofmt.tabWidth
tab_width = 8

[{go.mod,go.sum}]
indent_style = tab

[*.proto]
indent_style = space
indent_size = 2

0 comments on commit da4fa0b

Please sign in to comment.