-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels