Last active
May 24, 2024 13:38
-
-
Save DimaSamodurov/660bec2f5968ec3dd9526d4ca4221bd9 to your computer and use it in GitHub Desktop.
Linter configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sqlfluff] | |
dialect = clickhouse | |
templater = jinja | |
sql_file_exts = .sql,.sql.j2,.dml,.ddl | |
max_line_length = 140 | |
; exclude CO03 capitalisation.functions as sqlfluff does not have camelCase option used by ClickHouse. | |
; https://docs.sqlfluff.com/en/stable/rules.html#rule-CP03 | |
; exclude LT01 layout.spacing as it removes space alignment and adds space to `Nullable ()` call in some cases. | |
; e.g. `voided_taxes` Nested (name Nullable (String), amount Nullable (String)), | |
; Though, rule could be useful, we could disable it on file or line level. | |
; https://docs.sqlfluff.com/en/stable/rules.html#rule-LT01 | |
exclude_rules = CP03,LT01 | |
[sqlfluff:indentation] | |
indent_unit = space | |
tab_space_size = 4 | |
[sqlfluff:templater] | |
unwrap_wrapped_queries = True | |
; [sqlfluff:templater:jinja] | |
; apply_dbt_builtins = True | |
[sqlfluff:capitalisation] | |
keywords = upper | |
functions = capitalise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment