Skip to content

Commit

Permalink
[#12] Support --filename for upcoming clj-kondo
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude authored Nov 2, 2020
1 parent 152df7f commit a558bda
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions flycheck-clj-kondo.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ Argument EXTRA-ARGS: passes extra args to the checker."
:command ("clj-kondo"
"--lint" "-"
"--lang" (eval (or flycheck-clj-kondo-lang ,lang))
"--filename" (eval (buffer-file-name))
,@extra-args)
:standard-input t
:error-patterns
((error line-start "<stdin>:" line ":" column ": " (0+ not-newline) (or "error: " "Exception: ") (message) line-end)
(warning line-start "<stdin>:" line ":" column ": " (0+ not-newline) "warning: " (message) line-end)
(info line-start "<stdin>:" line ":" column ": " (0+ not-newline) "info: " (message) line-end))
((error line-start (or "<stdin>" (file-name))
":" line ":" column ": " (0+ not-newline) (or "error: " "Exception: ") (message) line-end)
(warning line-start (or "<stdin>" (file-name))
":" line ":" column ": " (0+ not-newline) "warning: " (message) line-end)
(info line-start (or "<stdin>" (file-name))
":" line ":" column ": " (0+ not-newline) "info: " (message) line-end))
:modes (,mode)
:predicate (lambda ()
(or
Expand Down

0 comments on commit a558bda

Please sign in to comment.