File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
resources/clj-kondo.exports/de.active-group/active-clojure Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
{:linters {:monad/empty {:level :error }}
2
- :hooks {:analyze-call {active.clojure.monad/monadic hooks.monad/monadic
2
+ :hooks {:analyze-call {active.clojure.dynj/declare-dynj hooks.dynj/declare-dynj
3
+ active.clojure.monad/monadic hooks.monad/monadic
3
4
active.clojure.cljs.record/define-record-type hooks.record/define-record-type
4
5
active.clojure.cljs.record/define-singleton-type hooks.record/define-singleton-type
5
6
active.clojure.sum-type/define-sum-type hooks.sum-type/define-sum-type
6
7
active.clojure.record/define-record-type hooks.record/define-record-type
7
- active.clojure.record/define-singleton-type hooks.record/define-singleton-type}}}
8
+ active.clojure.record/define-singleton-type hooks.record/define-singleton-type}}
9
+ :lint-as {active.clojure.dynj/binding clojure.core/binding
10
+ active.clojure.dynj/defn-dynj clojure.core/defn}}
Original file line number Diff line number Diff line change
1
+ (ns hooks.dynj
2
+ (:require [clj-kondo.hooks-api :as api]))
3
+
4
+ (defn declare-dynj
5
+ [{:keys [node]}]
6
+ (let [[name second & more] (rest (:children node))
7
+ new-node (api/list-node
8
+ (list (api/token-node 'do)
9
+ (api/list-node [(api/token-node 'declare) name])))]
10
+ {:node new-node}))
You can’t perform that action at this time.
0 commit comments