You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When calling throw incorrectly (wrong arity/types), clj-kondo does not issue any warnings. For example given src/test.clj:
(nstest)
(defnexample []
(throw"err" {:data1}))
Clojure errors with
$ clj -X test/example
Syntax error compiling throw at (test.clj:5:3).
Too many arguments to throw, throw expects a single Throwable instance
Is your feature request related to a problem? Please describe.
When calling
throw
incorrectly (wrong arity/types),clj-kondo
does not issue any warnings. For example givensrc/test.clj
:Clojure errors with
But
clj-kondo
does not warnDescribe the solution you'd like
clj-kondo
detects at least the arity if not the types forthrow
in Clojure (and maybe ClojureScript if possible).Describe alternatives you've considered
It's a fairly minor annoyance granted, but nice to have for completeness I guess.
The text was updated successfully, but these errors were encountered: