From 5630e3909eab1efb792619a954efe5fbdf5dad54 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Salinas Date: Mon, 17 Apr 2023 23:10:56 -0400 Subject: [PATCH] lint: set sqlfluff dialect --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.lua b/init.lua index faaeb94..5f74e33 100644 --- a/init.lua +++ b/init.lua @@ -200,6 +200,14 @@ lint.linters.clippy = { parser = require("lint.parser").from_errorformat(clippy_format), } +lint.linters.sqlfluff.args = { + "lint", + "--format=json", + -- note: users will have to replace the --dialect argument accordingly + "--dialect=sqlite", + "-", +} + linters = { bash = { "shellcheck" }, dockerfile = { "hadolint" },