clj-kondo

seancorfield 2024-12-06T21:37:08.879169Z

I'm thinking it would be helpful to have a linter to flag agent calls that don't have either :error-mode or :error-handler -- off by default -- since these indicate agents that could "break" and need to be restarted. Thoughts? (asking for a friend... ahem...)

borkdude 2024-12-06T21:45:27.686569Z

you could write a hook for this (for now)

seancorfield 2024-12-06T22:00:21.654649Z

Oh? I haven't looked into hooks too much, but yeah, I guess I could... I'll create a Jira at work to look into that next week in an idle moment.

borkdude 2024-12-06T22:17:07.885779Z

yeah you could use an :analyze-call hook for agent, lint the arguments and detect the non-presence of the keywords, throw an exception or call reg-finding! and then just return nil so the linter will proceed with linting the code

seancorfield 2024-12-06T22:25:45.766939Z

Thanks. Added that to my Jira ticket.