Skip to content

clojure.core/key is not detected #35

@wontheone1

Description

@wontheone1

I had code looking like this. Even though key is clojure core function it did not give error when checking arguments colliding with clojure.core functions.
I don't know if it's missing because it does not detect key (in reduce)
or it could be that lein-bikeshed does not detect the arguments in anonymous functions.
If the case is the latter, I don't know if it's a bug or intentional decision.

(defn- a-func-name [config config-keys]
  (reduce
    (fn [config key]
      (if-let [[optional-key value] (find config (s/optional-key key))]
        (-> config
            (dissoc optional-key)
            (assoc key value))
        config))
    config
    config-keys))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions