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.
Language-specific Linters
Section titled “Language-specific Linters”Go:
- go vet
- gofumpt
- staticcheck
- golines
Running the linters
Section titled “Running the linters”Run from the main /go folder
make install-dev-tools
make lintFixing lint formatting errors
Section titled “Fixing lint formatting errors”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
make format