-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use refactor-nrepl 3.3.2 #202
Conversation
3da7487
to
4f57611
Compare
(when-let [ns-replacement (replaceable-ns-form this filename)] | ||
(println "Cleaning unused imports:" filename) | ||
(write-ns-replacement! filename ns-replacement))))) | ||
(with-memoized-libspec-allowlist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This macro invocation could be a strategy
instead, added to the stack, but I prefered to leave something that would survive any possible refactorings (as we foresee that will happen wrt config, strategies and stuff) and clearly work no matter what.
Could be revisited later when f-s' new API becomes an actual thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 thanks for this one!
{:style/indent 0} | ||
[& body] | ||
`(do | ||
(require 'refactor-nrepl.ns.libspec-allowlist) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about requiring-resolve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not available in every clojure version, so I tend not to use it in tooling projs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F-s ships with clojure 1.10.3, so I think you're safe 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Also bumped r-n again for https://github.com/clojure-emacs/refactor-nrepl/blob/6529ec03c854eddcd0b62f359378d066e9d88d3d/CHANGELOG.md#332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 awesome! thanks
Brief
https://github.com/clojure-emacs/refactor-nrepl/blob/bc7779fc0d25ec025486438ad0f5b0990644a742/CHANGELOG.md#330
Now refactor-nrepl honors .clj-kondo config, as far as ns cleaning goes.
Which for us is useful: it means that f-s also gets to reuse kondo config, which means a DRYer/easier experience for a variety of users.
QA plan
Author checklist
Reviewer checklist