This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-30
Channels
- # babashka (44)
- # beginners (29)
- # calva (80)
- # cider (11)
- # clara (1)
- # clj-kondo (9)
- # clojure (80)
- # clojure-europe (21)
- # clojure-france (13)
- # clojure-nl (4)
- # clojure-spec (3)
- # clojure-uk (6)
- # clojurescript (72)
- # code-reviews (43)
- # cursive (11)
- # datomic (27)
- # events (13)
- # figwheel-main (12)
- # fulcro (27)
- # graalvm (1)
- # jackdaw (2)
- # kaocha (1)
- # malli (4)
- # meander (13)
- # nrepl (2)
- # pathom (8)
- # re-frame (4)
- # reagent (7)
- # reitit (9)
- # remote-jobs (1)
- # reveal (56)
- # ring-swagger (2)
- # sci (5)
- # shadow-cljs (20)
- # slack-help (2)
- # tools-deps (96)
- # vim (7)
- # xtdb (32)
echo '(require '\''clojure.tools.logging)(clojure.tools.logging/logf "cat" 1)' | clj-kondo --lint -
pretty cool that we now get errors for formatting. How would I go about making clj-kondo recognize the matching functions from timbre ( https://github.com/ptaoussanis/timbre )
echo '(require '\''taoensso.timbre)(taoensso.timbre/logf "cat" 1)' | clj-kondo --lint - 130 ↵
linting took 6ms, errors: 0, warnings: 0
@tanzoniteblack if timbre uses the exact same syntax as clojure.tools.logging or clojure.core/format, you can use :lint-as
thanks!
@borkdude Is there a way to use use multiple config files in the vscode extension? My cli command is clj-kondo --lint src --config .clj-kondo/project_config.edn
and am trying to add the proj specific linters to what is used in VSCode.
Currently not. Why don't you rename .clj-kondo/project_config.edn
to .clj-kondo/config.edn
? Then it will work
We have a global linter file we share between a bunch of projects, then have config files that are merged with specific things per project.
@grant.isom Right. I think it's best to write a script that uses clj-kondo.core/merge-configs
to spit out the merged config in your .clj-kondo/config.edn
. You can write this script using clojure
but also with babashka
(since clj-kondo
can be invoked as a babashka pod).
See https://github.com/borkdude/clj-kondo/#babashka-pod for an example.
Awesome, will take a look. Thanks!