From c3219056802e298ba46f780c9a023d695eea07df Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sun, 7 Nov 2021 14:28:18 -0800 Subject: [PATCH] clj-kondo cleanup part 1 --- .../next.jdbc/config.edn | 4 ---- .../com/github/seancorfield/next_jdbc.clj | 18 ------------------ .clj-kondo/config.edn | 2 +- 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 .clj-kondo/com.github.seancorfield/next.jdbc/config.edn delete mode 100644 .clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj diff --git a/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn b/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn deleted file mode 100644 index a67a5c6..0000000 --- a/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn +++ /dev/null @@ -1,4 +0,0 @@ -{:hooks - {:analyze-call - {next.jdbc/with-transaction - hooks.com.github.seancorfield.next-jdbc/with-transaction}}} diff --git a/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj b/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj deleted file mode 100644 index d9ff567..0000000 --- a/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj +++ /dev/null @@ -1,18 +0,0 @@ -(ns hooks.com.github.seancorfield.next-jdbc - (:require [clj-kondo.hooks-api :as api])) - -(defn with-transaction - "Expands (with-transaction [tx expr opts] body) - to (let [tx expr] opts body) pre clj-kondo examples." - [{:keys [:node]}] - (let [[binding-vec & body] (rest (:children node)) - [sym val opts] (:children binding-vec)] - (when-not (and sym val) - (throw (ex-info "No sym and val provided" {}))) - (let [new-node (api/list-node - (list* - (api/token-node 'let) - (api/vector-node [sym val]) - opts - body))] - {:node new-node}))) diff --git a/.clj-kondo/config.edn b/.clj-kondo/config.edn index 022a4f9..905ddb2 100644 --- a/.clj-kondo/config.edn +++ b/.clj-kondo/config.edn @@ -1 +1 @@ -{:config-paths ["com.github.seancorfield/next.jdbc"]} +{:config-paths ["resources/clj-kondo.exports/com.github.seancorfield/next.jdbc"]}