Skip to content

Commit

Permalink
Actually use the monkeypatches
Browse files Browse the repository at this point in the history
The monkeypatching code was totally appropriate we just weren't using
it.

Fixes clj-commons#78
  • Loading branch information
arrdem committed May 9, 2017
1 parent 84e3186 commit 14c10ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kibit/src/kibit/check.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
[clojure.core.logic.unifier :as unifier]
[kibit.core :as core]
[kibit.rules :as core-rules]
[kibit.reporters :as reporters])
[kibit.reporters :as reporters]
[kibit.monkeypatch
:refer [with-monkeypatches kibit-redefs]])
(:import [clojure.lang LineNumberingPushbackReader]))

;; ### Overview
Expand Down Expand Up @@ -195,7 +197,8 @@ into the namespace."
(defn- check-aux
"Simplify an expression, build a simplify-map, and guard the returning map"
[expr simplify-fn guard]
(->> expr simplify-fn (build-simplify-map expr) guard))
(with-monkeypatches kibit-redefs
(->> expr simplify-fn (build-simplify-map expr) guard)))

;; The default resolution is overriden via the `merge`
(defn check-expr
Expand Down

0 comments on commit 14c10ee

Please sign in to comment.