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

Unused bindings via :as #59

Closed
lbradstreet opened this issue May 8, 2018 · 2 comments
Closed

Unused bindings via :as #59

lbradstreet opened this issue May 8, 2018 · 2 comments

Comments

@lbradstreet
Copy link

I may be alone in this request, but I often like to use :as in destructuring to name a map for descriptive purposes, even though I don't use the binding. Is it possible to ignore measurement here?

e.g.

(defn my-fn [{:keys [value] :as measurement}]
   value)

Thank you for this tool. It has already improved my life massively when used via vim.

@candid82
Copy link
Owner

Implemented in c87d223
You can now disable warnings on unused :as bindings by adding the following to your .joker file:

{:rules {:unused-as false}}

@lbradstreet
Copy link
Author

Awesome! Thank you again for a great tool.

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

No branches or pull requests

2 participants