Skip to content

Commit

Permalink
Desribe how to appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Nov 30, 2021
1 parent b02743c commit aaf78a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ONBOARDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ For Goland:
* Under "Run"->"Edit Configurations..."->"Templates"->"Go Test", add `COMPLEMENT_BASE_IMAGE=complement-dendrite:latest`
* Then you can right-click on any test file or test case and "Run <test name>".


### How do I make the linter checks pass?

Use [`goimports`](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) to sort imports and format in the style of `gofmt`.

Set this up to run on save in VSCode as follows:
- File -> Preferences -> Settings.
- Search for "Format On Save" and enable it.
- Search for `go: format tool` and choose `goimports`.

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

Expand Down

0 comments on commit aaf78a8

Please sign in to comment.