lint_sql
Lint raw SQL against your chosen dialect to identify style and syntax issues. Optionally target specific rules to enforce coding standards.
Instructions
Lint a raw SQL string using an explicitly specified dialect.
Args: sql: The SQL text to lint. dialect: SQLFluff dialect name, e.g. "ansi", "bigquery", "snowflake", "postgres". See sqlfluff.list_dialects() for the full set. rules: Optional list of rule codes/names to restrict linting to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| rules | No | ||
| dialect | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||