kibit icon indicating copy to clipboard operation
kibit copied to clipboard

Running kibit --replace on code with namespace aliased keywords introduces regression

Open codeasone opened this issue 8 years ago • 1 comments

Minimal re-production: https://github.com/codeasone/kibit-namespace-aliased-keywords

Running lein kibit --replace --interactive on core.clj with namespace aliased keywords introduces a regression:

➜  kibit-namespace-aliased-keywords git:(master) ✗ lein kibit --replace --interactive
Would you like to replace
  (-> something :spec/something)
 with
  (:spec/something something)
in src/kibit_namespace_aliased_keywords/core.clj:6? [yes/no] yes

regression

Executing (foobar) with now returns nil rather than the value 1234 as expected.

codeasone avatar Oct 11 '17 11:10 codeasone

👍 Just experienced the same thing, could be dangerous.

yannvanhalewyn avatar Mar 26 '18 10:03 yannvanhalewyn