You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING_GO.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ At present, this means the following repositories:
14
14
## Topics
15
15
16
16
*[Unit Tests](#unit-tests)
17
+
*[Go Format and lint](#go-format-and-lint)
17
18
*[Go Dependency updates](#go-dependency-updates)
18
19
*[Testing changes in a dependent repository](#testing-changes-in-a-dependent-repository)
19
20
*[git bisect a change in a Go dependency](#git-bisect-a-change-in-a-go-dependency)
@@ -23,6 +24,11 @@ At present, this means the following repositories:
23
24
Unit tests for Go code are added in a separate file within the same directory, named `..._test.go` (where the first part of the name is often the name of the file whose code is being tested).
24
25
Our Go projects to not require unit tests, but contributors are strongly encouraged to unit test any code that can have a reasonable unit test written.
25
26
27
+
### Go Format and lint
28
+
29
+
We are using the [`gofumpt`](https://github.com/mvdan/gofumpt) formatter for our go code, you can either use it directly or format via `make fmt`.
30
+
For linting we use [`golangci-lint`](github.com/golangci/golangci-lint), use `make validate` to run it together with some other basic commit checks.
31
+
26
32
## Go Dependency updates
27
33
28
34
To automatically keep dependencies up to date we use the [renovate](https://github.com/renovatebot/renovate) bot.
0 commit comments