This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-16
Channels
- # babashka (48)
- # beginners (72)
- # calva (65)
- # cider (10)
- # clerk (11)
- # clj-kondo (14)
- # clojure (85)
- # clojure-austin (11)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-uk (6)
- # core-matrix (1)
- # cursive (8)
- # datomic (20)
- # docker (38)
- # emacs (2)
- # events (1)
- # fulcro (6)
- # funcool (6)
- # hyperfiddle (79)
- # introduce-yourself (1)
- # lsp (131)
- # malli (32)
- # off-topic (11)
- # pathom (3)
- # re-frame (11)
- # reagent (15)
- # releases (2)
- # shadow-cljs (49)
- # sql (3)
- # tools-deps (36)
I’m getting this:
❯ echo '(import "")' | clj-kondo --lint -
<stdin>:0:0: error: Can't parse <stdin>, java.lang.NullPointerException
linting took 39ms, errors: 1, warnings: 0
❯ clj-kondo --version
clj-kondo v2023.02.17
Should I just report an issue on github, and try to fix it?I would prefer a error message saying it’s not valid clojure.
Cool.
Is there any way to ignore a given namespace in clj-kondo? Like, applying #_:clj-kondo/ignore
to everything in a namespace, without pasting the ignore-string in front of every form.
Sometimes I like to flesh out a program structure upfront (function signatures, variables, ..) while leaving the bodies empty (with a ;; TODO
), which obviously trips up the linting. How do you guys work around this during WIP-stages of things?
See https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md and https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md
I'm currently working on an easier mode to silence everything in a macro. E.g. {:clj-kondo/ignore true}
and {:clj-kondo/ignore [:unresolved-symbol]}
here is a small demo: https://twitter.com/borkdude/status/1636108402043518981 but we could have the same for a namespace maybe