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

Extension doesn't respect warnings from sqlfluff output #139

Closed TheCleric closed 5 months ago

TheCleric commented 5 months ago

When marking a rule as a warning in SQLFluff (e.g., warnings = RF03 in .sqlfluff), the extension doesn't respect the output of the sqlfluff process that marks these as warnings.

In the output of the SQLFluff extension I can see certain lines are marked as warnings in the output e.g.:

{
    "start_line_no": 28,
    "start_line_pos": 7,
    "code": "RF03",
    "description": "Unqualified reference 'CollegeKey' found in single table select.",
    "name": "references.consistent",
    "warning": true,
    "fixes": [],
    "start_file_pos": 886,
    "end_line_no": 28,
    "end_line_pos": 17,
    "end_file_pos": 896
}

However the extension seems to disregard the "warning": true part of the message.

Extension version 3.0.2 SQLFluff version 3.0.7