This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-10
Channels
- # announcements (2)
- # babashka (15)
- # beginners (174)
- # calva (16)
- # chlorine-clover (10)
- # clara (7)
- # clj-kondo (27)
- # cljdoc (10)
- # clojars (4)
- # clojure (50)
- # clojure-europe (10)
- # clojure-gamedev (3)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-losangeles (1)
- # clojure-nl (16)
- # clojure-sg (1)
- # clojure-spec (7)
- # clojure-uk (41)
- # clojurescript (22)
- # data-science (15)
- # datascript (38)
- # datomic (2)
- # duct (15)
- # emacs (2)
- # fulcro (110)
- # funcool (9)
- # graphql (10)
- # jackdaw (8)
- # jobs (23)
- # joker (1)
- # leiningen (15)
- # luminus (1)
- # malli (20)
- # off-topic (26)
- # pathom (5)
- # pedestal (1)
- # reitit (19)
- # shadow-cljs (78)
- # spacemacs (2)
- # sql (52)
- # tools-deps (99)
- # vim (13)
👋 Hello. Does anyone know where I can find a full list of all the linters, that clj-kondo has?
Hi, @sasho.popov welcome! All linters are enabled by default, except these: https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#enable-optional-linters Here you can at least see all the names: https://github.com/borkdude/clj-kondo/blob/c590e59b24505e58fc7f5eb252780a387d02f88b/src/clj_kondo/impl/config.clj#L7
Thank you, this is exactly what I needed. The idea is that I want to disable some warnings, but I need the exact name of the linter in order to add it to the config.
:thumbsup: One other way to discover the right keys with each warning is to use JSON or EDN output
But I don’t invoke clj-kondo manually, I use it via and I see the warnings in the Problems tab of Visual Studio Code.
In case of false positives, I'd like to receive issues for them, to improve clj-kondo
O.K., so I’m new to clojure and I don’t know what the best practice for this is, but why do I need to require something, when I can reference it with full namespace?
Yes. Most tooling will load clojure.pprint already but you can not rely on that implicitly. $ clojure -e "(clojure.pprint/pprint {})" Execution error (ClassNotFoundException) at http://java.net.URLClassLoader/findClass (URLClassLoader.java:471). clojure.pprint
O.K., a couple of noob questions. clojure.pprint -> this is not part of clojure.core, obviously, right?
it is part of the standard library of clojure but not everything in the standard library is pre-loaded
Aha, ok, so when I start a clojure program, is automatically pre-loads clojure.core
, but nothing else (unless I require it explicitly, of course).
yes, or unless any other of your REPL tooling is loading that, but again, you should not trust on that, because if you release an uberjar for example, this tooling won't be there anymore
O.K., in that case, instead of disabling the linter, I might as well fix the offences 😉
No problem. It's always worth digging a little deeper to see why people are doing stuff.
The source is ok for this particular case, although something like https://docs.rubocop.org/en/stable/ would be nice. 🙂