-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
920 additions
and
994 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,24 @@ | ||
[sqlfluff] | ||
|
||
# cspell: words templater cpus ctes capitalisation organisation | ||
# cspell: words capitalisation | ||
|
||
# Supported dialects https://docs.sqlfluff.com/en/stable/dialects.html | ||
# Or run 'sqlfluff dialects' | ||
# We do not set a global SQL Dialect, so that we can support multiple | ||
# dialects in the same way. The dialect must be specified in a .sqlfluff file with the SQL files. | ||
[sqlfluff] | ||
dialect = postgres | ||
|
||
# One of [raw|jinja|python|placeholder] | ||
templater = raw | ||
|
||
# Comma separated list of rules to exclude, or None | ||
# See https://docs.sqlfluff.com/en/stable/configuration.html#enabling-and-disabling-rules | ||
# AM04 (ambiguous.column_count) and ST06 (structure.column_order) are | ||
# two of the more controversial rules included to illustrate usage. | ||
# exclude_rules = ambiguous.column_count, structure.column_order | ||
|
||
# The standard max_line_length is 80 in line with the convention of | ||
# other tools and several style guides. Many projects however prefer | ||
# something a little longer. | ||
# Set to zero or negative to disable checks. | ||
large_file_skip_char_limit = 0 | ||
max_line_length = 120 | ||
|
||
# CPU processes to use while linting. | ||
# The default is "single threaded" to allow easy debugging, but this | ||
# is often undesirable at scale. | ||
# If positive, just implies number of processes. | ||
# If negative or zero, implies number_of_cpus - specified_number. | ||
# e.g. -1 means use all processors but one. 0 means all cpus. | ||
processes = 0 | ||
|
||
# If using the dbt templater, we recommend setting the project dir. | ||
[sqlfluff:templater:dbt] | ||
project_dir = ./ | ||
|
||
[sqlfluff:indentation] | ||
# While implicit indents are not enabled by default. Many of the | ||
# SQLFluff maintainers do use them in their projects. | ||
#allow_implicit_indents = True | ||
tab_space_size = 2 | ||
|
||
indent_unit = space | ||
tab_space_size = 4 | ||
indented_joins = True | ||
indented_ctes = True | ||
indented_using_on = True | ||
indented_on_contents = True | ||
indented_then = True | ||
indented_then_contents = True | ||
# allow_implicit_indents = False | ||
template_blocks_indent = True | ||
|
||
# The default configuration for aliasing rules is "consistent" | ||
# which will auto-detect the setting from the rest of the file. This | ||
# is less desirable in a new project and you may find this (slightly | ||
# more strict) setting more useful. | ||
[sqlfluff:rules:aliasing.table] | ||
aliasing = explicit | ||
[sqlfluff:rules:aliasing.column] | ||
aliasing = explicit | ||
[sqlfluff:rules:aliasing.length] | ||
min_alias_length = 3 | ||
[sqlfluff:rules:layout.long_lines] | ||
ignore_comment_lines = True | ||
ignore_comment_clauses = True | ||
|
||
# The default configuration for capitalisation rules is "consistent" | ||
# which will auto-detect the setting from the rest of the file. This | ||
# is less desirable in a new project and you may find this (slightly | ||
# more strict) setting more useful. | ||
# Typically we find users rely on syntax highlighting rather than | ||
# capitalisation to distinguish between keywords and identifiers. | ||
# Clearly, if your organisation has already settled on uppercase | ||
# formatting for any of these syntax elements then set them to "upper". | ||
# See https://stackoverflow.com/questions/608196/why-should-i-capitalize-my-sql-keywords-is-there-a-good-reason | ||
[sqlfluff:rules:capitalisation.keywords] | ||
capitalisation_policy = upper | ||
[sqlfluff:rules:capitalisation.identifiers] | ||
capitalisation_policy = lower | ||
extended_capitalisation_policy = lower | ||
[sqlfluff:rules:capitalisation.functions] | ||
extended_capitalisation_policy = lower | ||
extended_capitalisation_policy = upper | ||
[sqlfluff:rules:capitalisation.literals] | ||
capitalisation_policy = lower | ||
[sqlfluff:rules:capitalisation.types] | ||
extended_capitalisation_policy = upper | ||
[sqlfluff:rules:layout.long_lines] | ||
ignore_comment_clauses = false | ||
ignore_comment_lines = false | ||
[sqlfluff:rules:capitalisation.types] | ||
extended_capitalisation_policy = upper |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.