Skip to content

Linters

Development on the Go wrapper may involve changes in either the Go or Rust code. Each language has distinct linter tests that must be passed before committing changes.

Go:

  • go vet
  • gofumpt
  • staticcheck
  • golines

Run from the main /go folder

Terminal window
make install-dev-tools
make lint

The following command can be used to fix Go formatting errors reported by gofumpt or golines. Note that golines does not always format comments well if they surpass the max line length (127 characters).

Run from the main /go folder

Terminal window
make format