Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds information about custom .sqlfluff and .sqlfluffignore files #3928

Merged
merged 9 commits into from
Aug 16, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ id: 2-how-we-style-our-sql
## Basics

- ☁️ Use [SQLFluff](https://sqlfluff.com/) to maintain these style rules automatically.
- Reference this [SQLFluff config file](https://github.com/dbt-labs/jaffle-shop-template/blob/main/.sqlfluff) for the rules we use.
- Customize `.sqlfluff` configuration files to your needs.
- Reference this [SQLFluff config file](https://github.com/dbt-labs/jaffle-shop-template/blob/main/.sqlfluff) for the rules we use in our own projects.
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved
- We also support ignoring files and folders using a standard `.sqlfluffignore` file. Reference these docs for the syntax: [.sqlfluffignore syntax docs](https://docs.sqlfluff.com/en/stable/configuration.html#id2)
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved
- 👻 Use Jinja comments (`{# #}`) for comments that should not be included in the compiled SQL.
- ⏭️ Use trailing commas.
- 4️⃣ Indents should be four spaces.
Expand Down
Loading