summaryrefslogtreecommitdiff
path: root/resources/clj-kondo/hooks
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-10-09 22:05:47 +0300
committerAsko Nõmm <asko@nmm.ee>2025-10-09 22:05:47 +0300
commitd654135ffebe935317a1f946c123bd25e4fb6aa3 (patch)
tree4568d42e8732c0f80b55afee1e5efa302b8007c9 /resources/clj-kondo/hooks
parent06085b955bb2959a88844dae9f77a0f35ee6a8c5 (diff)
Do away with the $ macro for runtime-agnostic purposes
Diffstat (limited to 'resources/clj-kondo/hooks')
-rw-r--r--resources/clj-kondo/hooks/dompa.clj16
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/clj-kondo/hooks/dompa.clj b/resources/clj-kondo/hooks/dompa.clj
index dac5762..1712a02 100644
--- a/resources/clj-kondo/hooks/dompa.clj
+++ b/resources/clj-kondo/hooks/dompa.clj
@@ -41,8 +41,8 @@
(doseq [arg (filter #(not (api/list-node? %)) rest-args)]
(api/reg-finding!
(assoc (meta arg)
- :message (str "Invalid argument type. Argument must be a $ macro "
- "or a sequence of $ macros.")
+ :message (str "Invalid argument type. Argument must be a $ node "
+ "or a sequence of $ nodes.")
:type :dompa.nodes/$-arg-validation)))
; if the first arg is a keyword, the second arg is a map, then from
@@ -52,8 +52,8 @@
(not (every? #(api/list-node? %) (rest rest-args))))
(api/reg-finding!
(assoc (meta (second rest-args))
- :message (str "Invalid argument type. Argument must be a $ macro "
- "or a sequence of $ macros.")
+ :message (str "Invalid argument type. Argument must be a $ node. "
+ "or a sequence of $ nodes.")
:type :dompa.nodes/$-arg-validation)))))
(defn defhtml [{:keys [node]}]
@@ -64,20 +64,20 @@
(api/reg-finding!
(assoc (meta first-arg)
:message "Invalid argument type. Binding name must be a symbol."
- :type :dompa.templates/defhtml-arg-validation))
+ :type :dompa.nodes/defhtml-arg-validation))
; second argument should be a vector
(not (api/vector-node? second-arg))
(api/reg-finding!
(assoc (meta second-arg)
:message "Invalid argument type. Must be a vector of arguments."
- :type :dompa.templates/defhtml-arg-validation))
+ :type :dompa.nodes/defhtml-arg-validation))
; rest of the arguments should be a list
(not (every? #(api/list-node? %) rest-args))
(doseq [arg rest-args]
(api/reg-finding!
(assoc (meta arg)
- :message (str "Invalid argument type. Argument must be a $ macro "
- "or a sequence of $ macros.")))))))
+ :message (str "Invalid argument type. Argument must be a $ node "
+ "or a sequence of $ nodes")))))))