branch: elpa/flymake-kondor
commit 34da15227fb1302f1abdba407c7bdc4206a37db6
Merge: 530bf3e 636c505
Author: turbo-cafe <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #3 from manuel-uberti/specify-lang
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)))