-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more test helpers, cleanup existing tests. Add editorconfig and g…
…olangci config, comply with golangci rules.
- Loading branch information
Showing
10 changed files
with
537 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
root = true | ||
|
||
# Sane defaults. | ||
[*] | ||
# Always use unix end of line. | ||
end_of_line = lf | ||
# Always insert a new line at the end of files. | ||
insert_final_newline = true | ||
# Don't leave trailing whitespaces. | ||
trim_trailing_whitespace = true | ||
# Default to utf8 encoding. | ||
charset = utf-8 | ||
# Space > tab for consistent aligns. | ||
indent_style = space | ||
# Default to 2 spaces for indent/tabs. | ||
indent_size = 2 | ||
# Flag long lines. | ||
max_line_length = 140 | ||
|
||
# Explicitly define settings for commonly used files. | ||
|
||
[*.go] | ||
indent_style = tab | ||
indent_size = 8 | ||
|
||
[*.feature] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.tf] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
# Don't check line lenghts in files. | ||
max_line_length = 0 | ||
|
||
[{Makefile,*.mk}] | ||
indent_style = tab | ||
indent_size = 8 | ||
|
||
[{Dockerfile,Dockerfile.*}] | ||
indent_size = 4 | ||
|
||
[*.sql] | ||
indent_size = 2 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.