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

Linter ignores rule that works in formatter #61

Open
awoehrl opened this issue Sep 23, 2022 · 3 comments
Open

Linter ignores rule that works in formatter #61

awoehrl opened this issue Sep 23, 2022 · 3 comments
Assignees

Comments

@awoehrl
Copy link

awoehrl commented Sep 23, 2022

Hi!

I have rule L019 set to leading commas. The formatter perfectly follows the rule and puts all commas in front. The linter however subsequently marks these as errors. All other rules seem to be interpreted correctly.

"Found leading comma. Expected only trailing.sqlfluff(L019)"

image

If I use the CLI command to lint the same file, there is no L019 warning and everything works perfectly.

I'm using the latest versions of SQLFluff as well as the extension. This is with templater = dbt and dialect = bigquery.

@RobertOstermann
Copy link
Contributor

Did you change any of the extension settings? With templater = dbt you might have to set the linter to run on save. Do you know if other settings from the .sqlfluff file are working correctly?

@RobertOstermann RobertOstermann self-assigned this Sep 23, 2022
@hblauth
Copy link

hblauth commented Jun 1, 2023

@awoehrl how did you set that rule in vscode? I can't figure it out 😩

@nvoq-kimmiesse
Copy link

@awoehrl , how did you set the rule in settings.json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants