sqlfluff / vscode-sqlfluff

An extension to use the sqlfluff linter in vscode.
https://marketplace.visualstudio.com/items?itemName=dorzey.vscode-sqlfluff
MIT License
156 stars 33 forks source link

[Feature] Show rule name in `Problems` tab #134

Closed aleix-cd closed 4 months ago

aleix-cd commented 7 months ago

Is there an existing issue for this?

No

Describe the issue

When linting errors pop up in the Problems tab in VSCode, only the rule code is returned.

E.g. Expected indent of 4 spaces. sqlfluff(LT02) [Ln 83, Col 1]

Relevant screenshot

image

Expected behaviour

Since we can now use the rule name in our noqa comments to disable rules (e.g. noqa: disable=layout.indent), it would be much easier to show the rule name in the Problems tab as well.

Example of how the Problems output could look like: Expected indent of 4 spaces. sqlfluff(LT02: layout.indent) [Ln 83, Col 1]

Are you willing to open a PR to help address this issue?

Yes, but I'd probably need assistance

RobertOstermann commented 4 months ago

@aleix-cd This should be updated in v3.1.1

aleix-cd commented 4 months ago

Just tested it, wonderful! Thanks a lot ❤️