Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend ns-groups to be used in analyze-call #2067

Closed
thiagocarvp opened this issue May 4, 2023 · 0 comments
Closed

Extend ns-groups to be used in analyze-call #2067

thiagocarvp opened this issue May 4, 2023 · 0 comments
Projects

Comments

@thiagocarvp
Copy link

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the solution you'd like
Extend ns-groups to used in alayze-call, so we can define a ns-group and use it as the namespaces that have a function that we want to analyze its call, for example:

{:ns-groups [{:pattern "foo.*" :name foo-group}]
 :hooks     {:analyze-call {foo-group/some-fn some-dep/some-fn}}}

Describe alternatives you've considered
We can have the regex direct in the keys of the analyze-call map, for instance:

{:hooks {:analyze-call {"foo.*/some-fn" some-dep/some-fn}}}
@borkdude borkdude added this to Needs triage in clj-kondo via automation May 4, 2023
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo May 4, 2023
@borkdude borkdude moved this from High priority (next release) to In progress in clj-kondo May 17, 2023
clj-kondo automation moved this from In progress to Done May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
clj-kondo
  
Done
Development

No branches or pull requests

1 participant