Skip to content

Commit

Permalink
editorconfig: init
Browse files Browse the repository at this point in the history
I noticed the setup.sh script is a bit confused about indentation. If
everybody sets up an editorconfig plugin for their editor, their
editor will automatically configure itself:
https://editorconfig.org/#download
  • Loading branch information
grahamc committed Jun 1, 2020
1 parent 0b076b4 commit 96d441b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[{Makefile,go.mod,go.sum,*.go,.gitmodules,*.sh}]
indent_style = tab
indent_size = 8

[*.md]
indent_size = 4

0 comments on commit 96d441b

Please sign in to comment.