Usage: pgvet [flags] <file-or-dir>...A static analysis tool for PostgreSQL SQL files.Flags: -exclude string Comma-separated list of rules to exclude -format string Output format: text or json (default "text") -rules string Comma-separated list of rules to run (default: all)Default rules: select-star SELECT * in outermost query is fragile — list columns explicitly limit-without-order LIMIT without ORDER BY produces non-deterministic results (exempts LIMIT 1) not-in-subquery NOT IN (SELECT ...) is broken when the subquery can return NULLs — use NOT EXISTS instead ...
If you get a “command not found” error, make sure $GOPATH/bin is in your PATH. Add this to your shell profile: