From 784f2b55b0c4b686bfa0798b8a83d1708f1e60a9 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Tue, 21 Dec 2021 10:19:21 +0100 Subject: [PATCH] Rename hook for Cursive --- .../better-cond/better-cond/better_cond/core.clj | 2 +- resources/clj-kondo.exports/better-cond/better-cond/config.edn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/clj-kondo.exports/better-cond/better-cond/better_cond/core.clj b/resources/clj-kondo.exports/better-cond/better-cond/better_cond/core.clj index a715346..cd3e0fd 100644 --- a/resources/clj-kondo.exports/better-cond/better-cond/better_cond/core.clj +++ b/resources/clj-kondo.exports/better-cond/better-cond/better_cond/core.clj @@ -83,7 +83,7 @@ , (recur pairs (conj new-body lhs rhs)))) (api/list-node new-body)))) -(def cond +(def cond-hook (fn [{:keys [:node]}] (let [expr (let [args (rest (:children node)) pairs (partition-all 2 args)] diff --git a/resources/clj-kondo.exports/better-cond/better-cond/config.edn b/resources/clj-kondo.exports/better-cond/better-cond/config.edn index 68d1e4f..252526c 100644 --- a/resources/clj-kondo.exports/better-cond/better-cond/config.edn +++ b/resources/clj-kondo.exports/better-cond/better-cond/config.edn @@ -1,5 +1,5 @@ {:hooks - {:analyze-call {better-cond.core/cond better-cond.core/cond}} + {:analyze-call {better-cond.core/cond better-cond.core/cond-hook}} :lint-as {better-cond.core/if-let clojure.core/let better-cond.core/when-let clojure.core/when-let}}