Skip to content

SQLfluff does not format onSave #177

@jakub-ga

Description

@jakub-ga

here's my settings.json. I use dbt as templater.

{
  "sqlfluff.config": "~/pyproject.toml",
  "sqlfluff.executablePath": "~/.venv/bin/sqlfluff",
  "sqlfluff.dialect": "postgres",
  "sqlfluff.format.enabled": true,
  "editor.formatOnSave": false,
  "sqlfluff.linter.run": "onSave",
  "sqlfluff.experimental.format.executeInTerminal": true,
  "sqlfluff.format.arguments": ["--FIX-EVEN-UNPARSABLE"],
  "[sql]": {
    "editor.defaultFormatter": "dorzey.vscode-sqlfluff",
  }

I would like that the formatting takes place onSave, instead it's linting and highlighting the broken rules. Is there a way to improve it?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions