lint_file
Lint SQL files on disk, automatically applying SQLFluff configs discovered from the file's directory. Optionally layer an extra config file for custom rules.
Instructions
Lint a SQL file on disk, honoring any .sqlfluff / pyproject.toml config found by walking up from the file's directory.
Args: path: Path to the SQL file to lint. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||