Skip to main content

Linting

To keep our code consistent and readable, we use GolangCI-Lint to lint our Go code.
The linters are run automatically on every push to a branch with an active PR.
The CI job is defined in .github/workflows/lint.yml.
The linters used are defined in the .golangci.yml file inside the src directory.
To get more information about each linter, check out the GolangCI-Lint docs.

Running the linters locally

To run the linters locally, you need to have GolangCI-Lint installed.
Navigate to the src directory and run:

golangci-lint run