clara

Matt Ielusic 2023-05-19T21:43:44.461789Z

Hello! I’m working on adding the new clj-kondo hooks into a legacy codebase But I get mysterious warning: unused binding this lint problems on some (but not all!) of my defrules What might be cause of this?

jgomez 2023-05-22T03:14:07.766519Z

@matt.ielusic I've indeed recently added support for linting clara-rules through clj-kondo hooks, I noticed the same thing this week with some of my own codebase and will be working on a fix for the linter. The initial goal was to add linter support which previously did not exist, it will improve over time.

🎉 1
1
jgomez 2023-05-22T04:47:04.522059Z

this version contains the fix: https://clojars.org/com.cerner/clara-rules/versions/0.22.1

2023-05-20T13:27:36.862699Z

Seems related to recent work. https://github.com/cerner/clara-rules/pull/482

Matt Ielusic 2023-05-21T03:37:38.633609Z

That’s the PR that added the new hooks, right? I don’t understand the lint warnings they’re generating on my pre-existing codebase.

2023-05-21T04:36:15.445209Z

Oh. I misread I think. You are using the new hooks but getting warnings ? Maybe worth asking on the PR or associated issue to see if something is missing.

Matt Ielusic 2023-05-22T17:40:35.363559Z

Yeah, that solved all my lint warnings, thanks!

👍 2