News for hackers. Stuff that matters.
Re:Sqlfluff the SQL Linter for Humans by munro on Wednesday October 06, 2021 @11:24AM (#28774255)
The code looks really great [1], very declarative, looks like it should be pretty easy to add better PostgreSQL support. I also wonder if how easy it would be to plug it into VS Code, and build in an auto formatter (♥ω♥ ). At a glance it looks like it's parsing AST, which is really hard to find for SQL, so auto formatter could be possible to build from this. I notice SQLite could use some improving too, seems like a great project to coalesce around.

[1] https://github.com/sqlfluff/sqlfluff/blob/main/src/sqlfluff/...

Re:Sqlfluff the SQL Linter for Humans by amshank on Wednesday October 06, 2021 @11:36AM (#28774399)
Auto-formatter is already built in for some simple violations: https://docs.sqlfluff.com/en/stable/cli.html#sqlfluff-fix
Re:Sqlfluff the SQL Linter for Humans by tunetheweb on Wednesday October 06, 2021 @02:11PM (#28776289)