-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Rule] LT01 - spacing #830
Comments
Thanks for the feedback, will look into it. |
Related to #855, this should add the SELECT 1; --noqa: disable=LT01 |
Will the added noqa allow me to do something like:
We're getting an issue where having any of the {% jinja style operators in the beginning of the file causes downstream lints to end up looking like:
|
This won't be able to do a range just yet, but let me look into it. Now that we have the infrastructure, it should be much easier. Really, what this needs is a DBT templater... and I am at Coalesce, so I might feel inspired. |
Sounds good Ben. I agree, a templater would work, but I can say that with this fix here it already has about 95% coverage on my project that uses dbt. It's just the incremental models that always have the jinja at the start where it fuzzes up and left align/capitalizes everything regardless of my settings. Will get a blog post out when we're working well, amazing tool. |
Latest version should have this in it. Just pushing to our brew. For the docs on it: https://github.com/quarylabs/sqruff?tab=readme-ov-file#ignoring-errors |
L: 4 | P: 20 | LT01 | Expected single whitespace between "{" and "{".
| [layout.spacing]
In sqlfluff, this works:
[sqruff:layout:type:placeholder]
spacing_within = any
spacing_before = any
spacing_after = any
and adding -- noqa: LT01 to a line allows inline ignoring, but neither approaches work with current version of sqruff.
The text was updated successfully, but these errors were encountered: