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

Improve developer experience by avoiding "Unresolved var" warnings by clj-kondo #218

Closed
jacobemcken opened this issue Sep 4, 2022 · 2 comments · Fixed by #220
Closed

Comments

@jacobemcken
Copy link
Contributor

Since all operators are created using the macro defoperator in the monger.operators namespace, the IDE doesn't know that these symbols actually exists (and clj-kondo complains about stuff like Unresolved var: $inc).

Would you be interested in a PR that declares all operators, kinda like so:

(declare $gt $gte $lt $lte ...
...
(defoperator $gt)
(defoperator $gte)
(defoperator $lt)
(defoperator $lte)
...

This ensures symbols can be seen by the IDE to improve the developer experience (e.g. easily noticing a typo in an operator).

@michaelklishin
Copy link
Owner

Sure, why not. Thank you.

@Deraen
Copy link
Contributor

Deraen commented Sep 7, 2022

This and #210 would be indeed nice to improve dev experience with clj-kondo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants