Static Analysis

Dependencies

Install development utilities

Install Go linters, vulnerability detection and license check tools:

$ make dev-install-tools

Install SQLFluff:

$ make dev-install-sqlfluff

Run linters

Go

Check Go sources with golangci-lint:

$ make lint

Check Go source headers with copywrite:

$ make copywrite

Check Go sources and go.mod for vulnerabilities:

$ make vulncheck

SQL Migrations

Check SQL files with SQLFluff:

$ make lint-sql

Format SQL files with SQLFluff:

$ make format-sql