Skip to content

Commit 450bf6d

Browse files
committed
Provide clj-kondo hook for def-http-method
This allows clj-kondo to properly lint aleph.http/post and friends.
1 parent c810a87 commit 450bf6d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.clj-kondo/config.edn

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{:config-paths ["../resources/clj-kondo.exports/clj-commons/aleph"]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(ns aleph.clj-kondo-hooks)
2+
3+
(defmacro def-http-method [method]
4+
`(defn ~method
5+
([url#])
6+
([url# options#])))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{:hooks {:macroexpand {aleph.http/def-http-method aleph.clj-kondo-hooks/def-http-method}}}

0 commit comments

Comments
 (0)