Fork me on GitHub
#clj-kondo
<
2019-09-03
>
juhoteperi12:09:58

I wonder if there is configuration to disable unused binding warning for certain names? For example, I use e (event) binding in event handler functions even I don't need the event. For new projects I could consider prefixing with _ but I'd rather not rename all bindings in existing projects. Other cases include catch Exception e, and ctx name I use for component/integrant system map.

juhoteperi12:09:52

Another thing I could use, would be to exclude unused binding warning for map destructuring :as, where I use the name for documentation, when I only refer to :keys bindings.

borkdude12:09:09

There are only two ways to suppress these warnings: https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#exclude-unused-bindings-from-being-reported There is no special option for :as but that could be implemented as a new feature.