borkdude / flycheck-clj-kondo

Emacs integration for clj-kondo via flycheck
94 stars 17 forks source link

Support tramp-mode #9

Open borkdude opened 4 years ago

borkdude commented 4 years ago

See https://github.com/flycheck/flycheck/issues/1816#issuecomment-673134936

borkdude commented 3 years ago

First experiment:

(defun clj-kondo-tramp ()
  (interactive)
  (start-file-process "clj-kondo" (get-buffer-create "*clj-kondo*")
                      "clj-kondo" "--lint" (file-remote-p (file-truename buffer-file-name) 'localname)))

Running this in the tramp buffer, will output clj-kondo's warnings to the *clj-kondo* buffer.