This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-11
Channels
- # asami (19)
- # babashka (41)
- # beginners (115)
- # biff (7)
- # calva (78)
- # clj-kondo (29)
- # cljs-dev (9)
- # clojure (39)
- # clojure-europe (17)
- # clojure-gamedev (29)
- # clojure-nl (1)
- # clojure-norway (9)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurescript (7)
- # core-async (26)
- # cursive (16)
- # datomic (13)
- # emacs (1)
- # events (5)
- # fulcro (2)
- # funcool (4)
- # gratitude (1)
- # helix (1)
- # holy-lambda (1)
- # humbleui (1)
- # introduce-yourself (4)
- # java (1)
- # jobs (2)
- # jobs-discuss (9)
- # lsp (28)
- # matcher-combinators (2)
- # mathematics (1)
- # membrane (1)
- # nbb (12)
- # off-topic (10)
- # pathom (52)
- # polylith (38)
- # portal (32)
- # re-frame (4)
- # reagent (16)
- # reitit (2)
- # remote-jobs (1)
- # reveal (1)
- # rewrite-clj (10)
- # sci (67)
- # shadow-cljs (45)
- # squint (1)
- # tools-build (13)
- # tools-deps (16)
Does it make sense that clj-kondo throws "unresolved namespace" for user
? The use case is I setup dev vars in user, then reference them in rich comments in source files. Guess 1 solution is to have the rich comments in the user file instead.
@benjamin.schwerdtner Just write (require 'user)
to solve this. All namespaces must be required prior to use is the rule
For user
this might seem a bit silly, but don't know if it's common enough to make an exception for that
does clj-kondo
support colored output on the CLI to differentiate warnings from errors?
I know it's not related to clojure, but it's pretty common to expect linters to check that
I just stumble upon an exception that could be easily detected by clj-kondo but it doesn鈥檛 馃檪 After merging I鈥檝e got duplicate symbols in defrecord definition. On the first look It seems easy to add an extra linter to kondo if it sounds interesting 馃檹
(defrecord X [y y])
yes, it throws
thanks for the confirmation 馃檪 I鈥檒l file one
https://github.com/clj-kondo/clj-kondo/issues/1875 done, will make a PR later today (probably 馃檪)
is it possible to get the pre and post map from a function definition in a hook? or do I have to do
(let [children (:children (drop 2 node))
children (if (api/vector? (first children)) (rest children) children)]
(if (api/list-node? (first children))
(->> children
(filter api/list-node?)
(map :children)
(map #(if (api/vector-node? (first %)) (rest %) %))
(keep #(when (and (api/map-node? (first %)) (next %))
(->> (:children (first %))
(partition 2)
(filter (fn [[k _v]] (and (api/keyword-node? k) (#{:pre :post} (:k k)))))
(seq)))))
(when (and (api/map-node? (first children)) (next children))
(->> (:children (first children))
(partition 2)
(filter (fn [[k _v]] (and (api/keyword-node? k) (#{:pre :post} (:k k)))))
(seq)))