Skip to content

Commit aaf78a8

Browse files
author
David Robertson
authored
Desribe how to appease the linter
1 parent b02743c commit aaf78a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ONBOARDING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ For Goland:
220220
* Under "Run"->"Edit Configurations..."->"Templates"->"Go Test", add `COMPLEMENT_BASE_IMAGE=complement-dendrite:latest`
221221
* Then you can right-click on any test file or test case and "Run <test name>".
222222

223+
224+
### How do I make the linter checks pass?
225+
226+
Use [`goimports`](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) to sort imports and format in the style of `gofmt`.
227+
228+
Set this up to run on save in VSCode as follows:
229+
- File -> Preferences -> Settings.
230+
- Search for "Format On Save" and enable it.
231+
- Search for `go: format tool` and choose `goimports`.
223232

224233
### How do I hook up a Matrix client like Element to the homeservers spun up by Complement after a test runs?
225234

0 commit comments

Comments
 (0)