summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-09-25 21:52:28 +0300
committerAsko Nõmm <asko@nmm.ee>2025-09-25 21:52:28 +0300
commit0392db96028d0b0a371396444d002eed15719771 (patch)
treed64489380096cecbab74c6baef4b231058c2fadc /resources
parentcf55a6a6688c54527a3d27a8d6027858ced99257 (diff)
Simplify messages
Diffstat (limited to 'resources')
-rw-r--r--resources/clj-kondo/hooks/dompa.clj12
1 files changed, 4 insertions, 8 deletions
diff --git a/resources/clj-kondo/hooks/dompa.clj b/resources/clj-kondo/hooks/dompa.clj
index 0db709f..5e36df6 100644
--- a/resources/clj-kondo/hooks/dompa.clj
+++ b/resources/clj-kondo/hooks/dompa.clj
@@ -31,10 +31,7 @@
(api/list-node? (first rest-args)))))
(api/reg-finding!
(assoc (meta (first rest-args))
- :message (str "Invalid argument type. When creating a non-text node, "
- "the second argument must be a sequence or a map. "
- "In other words, the second argument must be an attribute map "
- "or sequence of other nodes created with the $ macro.")
+ :message (str "Invalid argument type. Argument must be a sequence or a map.")
:type :dompa.templates/$-arg-validation))
; if the first arg is a keyword, the second arg is a list, then
@@ -46,7 +43,7 @@
(for [arg (filter #(not (api/list-node? %)) rest-args)]
(api/reg-finding!
(assoc (meta arg)
- :message (str "Invalid argument type. Argument has to be a $ macro "
+ :message (str "Invalid argument type. Argument must be a $ macro "
"or a sequence of $ macros.")
:type :dompa.templates/$-arg-validation))))
@@ -57,7 +54,6 @@
(not (every? #(api/list-node? %) (rest rest-args))))
(api/reg-finding!
(assoc (meta (second rest-args))
- :message (str "Invalid argument type. When having a attribute map, "
- "the rest of the arguments must be a $ macro or a sequence "
- "of $ macros")
+ :message (str "Invalid argument type. Argument must be a $ macro "
+ "or a sequence of $ macros.")
:type :dompa.templates/$-arg-validation)))))