Skip to content

Using --replace removes the namespace qualifier :: #240

Open
@manuel-sugawara

Description

Source before:

(ns test_kibit.core
  (:require [test_kibit.data :as tkb]))

(def test-value {::tkb/foo 1 ::tkb/bar 2})

(def size
  (-> (doto
          (java.util.ArrayList.)
        (.add (::tkb/foo test-value))
        (.add (::tkb/bar test-value)))
      .size))

After lein kibit --replace

(ns test_kibit.core
  (:require [test_kibit.data :as tkb]))

(def test-value {::tkb/foo 1 ::tkb/bar 2})

(def size
  (.size (doto (java.util.ArrayList.) (.add (:tkb/foo test-value)) (.add (:tkb/bar test-value)))))

Note that ::tkb/foo and ::tkb/bar got replace by :tkb/foo and :tkb/bar.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Using `--replace` removes the namespace qualifier `::` · Issue #240 · clj-commons/kibit