This document describes how to setup automatically or manually linting your change.
goversion should be equal to the one specified ingo.mod
Run the following command (golangci-lint will be installed automatically if not installed):
go run build/ci.go lint -v --new-from-rev=devThis will automatically run the linter when you commit your change. Copy and paste below pre-commit script to .git/hooks/pre-commit file and make the file executable (e.g., chmod +x pre-commit).
#!/bin/sh
go run build/ci.go lint -v --new-from-rev=dev