fnando / vscode-linter

Extension for code linting, all in one package. New linters can be easily added through an extension framework.
https://marketplace.visualstudio.com/items?itemName=fnando.linter
MIT License
63 stars 16 forks source link

Add DBT "jinja-sql" files to sqlfluff linter #21

Closed Startouf closed 1 year ago

Startouf commented 1 year ago

DBT is a popular framework for data modeling and transformations, is is built on SQL with jinja macros, and their official plugin extension records a file type "Jinja SQL", which can be linted with sqlfluff with the DBT templater

Sqlfluff officially supports DBT

# .sqlfluff
[sqlfluff]
dialect = bigquery
templater = dbt

It would be great to add this compatibility out of the box when installing the extension

fnando commented 1 year ago

Just released v0.0.16 with this. :)