Lint inline SQL in Go helps you lint inline Postgres SQL statements in your golang code.
The extension uses and wouldn't be possible without pgsql-ast-parser. No set up required from user's end.
This extension contributes the following settings:
lintInlineSQLInGo.sqlRegex
: To match sql statements in your code. Defaults to "`([^\`]*)`" ie it matches all tilde quoted strings.
For example, to match only tilde quoted strings which are assigned to a sql
variable you can do something like -
"lintInlineSQLInGo.sqlRegex": "sql := `([^`]*)`"
No known issues. But syntax errors can be improved from default error messages that we get from parser.
- Rename display name for the extension
- Fix screenshots in README
Initial release.