We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CTE closing bracket is on the same line and layout.cte_bracket is excluded. Linting still raises an error for layout.indent.
layout.cte_bracket
layout.indent
WITH zoo AS ( SELECT a FROM foo) SELECT * FROM zoo
$ sqlfluff lint qwe.sql == [example.sql] FAIL L: 2 | P: 22 | LT02 | Expected line break and no indent before ')'. | [layout.indent] All Finished 📜 🎉!
and expects the following:
WITH zoo AS ( SELECT a FROM foo ) SELECT * FROM zoo
Excluding layout.cte_bracket rule allows to have the following format as expected:
Despite that this query and expected behaviour explicitly documented for LT07 there is some conflict with layout.indent.
Would be helpful to clarify the interplay between these rules and have an option to configure it.
example.sql
.sqlfluff
[sqlfluff] dialect = bigquery exclude_rules = layout.cte_bracket
$ sqlfluff lint qwe.sql
bigquery
sqlfluff, version 3.0.6 Python 3.12.2 (main, Feb 6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Search before asking
What Happened
CTE closing bracket is on the same line and
layout.cte_bracket
is excluded.Linting still raises an error for
layout.indent
.and expects the following:
Expected Behaviour
Excluding
layout.cte_bracket
rule allows to have the following format as expected:Observed Behaviour
Despite that this query and expected behaviour explicitly documented for LT07 there is some conflict with
layout.indent
.Would be helpful to clarify the interplay between these rules and have an option to configure it.
How to reproduce
example.sql
:.sqlfluff
:Dialect
bigquery
Version
sqlfluff, version 3.0.6
Python 3.12.2 (main, Feb 6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Configuration
[sqlfluff]
dialect = bigquery
exclude_rules = layout.cte_bracket
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: