branch: elpa/flymake-kondor
commit 636c505f1218a1de8565e41a1991b0d4272e158d
Author: Manuel Uberti <[email protected]>
Commit: Manuel Uberti <[email protected]>
Pass lang to check edn files correctly
---
flymake-kondor.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/flymake-kondor.el b/flymake-kondor.el
index 78eea2e..1e0f33a 100644
--- a/flymake-kondor.el
+++ b/flymake-kondor.el
@@ -39,10 +39,11 @@
(require 'flymake-quickdef)
(flymake-quickdef-backend flymake-kondor-backend
- :pre-let ((kondor-exec (executable-find "clj-kondo")))
+ :pre-let ((kondor-exec (executable-find "clj-kondo"))
+ (lang (file-name-extension buffer-file-name)))
:pre-check (unless kondor-exec (error "Not found clj-kondo on PATH"))
:write-type 'pipe
- :proc-form (list kondor-exec "--lint" "-")
+ :proc-form (list kondor-exec "--lint" "-" "--lang" lang)
:search-regexp "^.+:\\([[:digit:]]+\\):\\([[:digit:]]+\\):
\\([[:alpha:]]+\\): \\(.+\\)$"
:prep-diagnostic
(let* ((lnum (string-to-number (match-string 1)))