lint_sql
Checks SQL for style violations such as trailing whitespace, mixed indentation, line length, and keyword case, returning violation counts and details.
Instructions
Use this when the user wants SQL style feedback. Applies the same 10 rules as gosqlx lint: L001 trailing whitespace, L002 mixed indentation, L003 consecutive blank lines, L004 indentation depth, L005 line length (>100), L006 column alignment, L007 keyword case (upper), L008 comma placement (trailing), L009 aliasing consistency, L010 redundant whitespace. Returns {violation_count, violations}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL string to lint |