Normally cljs analysis is harder, but this specific refactoring can be done in a quite mechanical manner.
replacement should be smart, avoiding false positives: e.g. if foo/ is to be renamed, one should avoid ocurrences of foo/ within string literals, comments, at the left hand of let bindings, etc.
So, replacement is best achieved with rewrite-clj, although analysis should be done with a richer tool
One should be able to mass-rename e.g the
t
in[taoensso.timbre :as t]
tolog
throughout a whole project.One can find inspiration in:
Considerations
foo/
is to be renamed, one should avoid ocurrences offoo/
within string literals, comments, at the left hand of let bindings, etc.rewrite-clj
, although analysis should be done with a richer tool