This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-18
Channels
- # announcements (5)
- # aws (14)
- # babashka (5)
- # beginners (39)
- # brompton (9)
- # chlorine-clover (10)
- # cider (2)
- # clj-kondo (107)
- # cljfx (2)
- # cljsrn (7)
- # clojure (40)
- # clojure-australia (2)
- # clojure-conj (5)
- # clojure-europe (11)
- # clojure-japan (2)
- # clojure-nl (3)
- # clojure-spec (1)
- # clojure-uk (6)
- # clojurescript (8)
- # cursive (20)
- # datahike (6)
- # degree9 (2)
- # deps-new (2)
- # fulcro (26)
- # gitpod (11)
- # jobs (1)
- # joker (1)
- # kaocha (1)
- # lambdaisland (1)
- # malli (6)
- # membrane (1)
- # nbb (1)
- # news-and-articles (2)
- # off-topic (3)
- # pedestal (23)
- # re-frame (19)
- # reagent (6)
- # sci (110)
- # shadow-cljs (7)
- # tools-deps (9)
- # xtdb (20)
I tried something like this:
"clj-kondo-deps" ["run" "-m" "clj-kondo.main" "--copy-configs" "--dependencies" "--config" ".clj-kondo/config.edn" "--lint" ~#(clojure.string/join ":" (leiningen.core.classpath/get-classpath %))]
"clj-kondo" ["do" ["clj-kondo-deps"] ["run" "-m" "clj-kondo.main" "--config" ".clj-kondo/config.edn" "--lint" "src" "test"]]
yeah, $(lein classpath)
inside lein project.clj would fall into a infinte loop hehe
I tried ~#(clojure.string/join ":" (leiningen.core.classpath/get-classpath %))
that lein would eval that, but it returns a function not a string
because at nubank we have this lein clj-kondo
alias for all services, but it's missing lint the classpath before to copy the configs and dependencies to cache
you're the admin of https://github.com/clj-kondo/lein-clj-kondo
Do you think the plugin should call clj-kondo.core/run!
or clj-kondo.main/main
?
if the former, the api for the plugin would look something like:
lein clj-kondo "{:lint "src" ...}"
this would need almost none maintaince to the plugin as it'll be really simple just calling the kondo api, but a less friendly user UX
the other one, would looks:
lein clj-kondo --lint src
but I'm not sure how the lint classpath would work :thinking_face:just adding a interceptor layer to check if the arg to lint is a "$classpath" or something like that
Just pushed a working version to master, LMK if you think we should change anything
also, the artifact is clj-kondo/lein-clj-kondo
, not sure if that group-id is correct though
That's better :) Probably a typo here: https://github.com/clj-kondo/lein-clj-kondo/blob/48c30a2059b0127862cc36b42c1f9d4516630ae0/scripts/lein_clj_kondo/ci.clj#L24
here is an example repo of clj-commons: https://github.com/clj-commons/infra it uses a bb script as well to push a tag
since clj-kondo is a little bit old project, the group restriction was not need in the time for clojars
I have the group, but even if you have the group, you can't push any new projects to it
we need to open that issue but first create the repo
or the name of who is opening the issue
this doesn't use infra but it responds to the tag change: https://github.com/clj-commons/clj-yaml
Just pushed, it uses this action I use on clojure-lsp as well to deploy t oclojars: https://github.com/marketplace/actions/publish-to-clojars so it's a really simple action
we just need to setup those 2 secrets on the clj-kondo org or on lein-clj-kondo repositoy
I can't access the public created repository: https://github.com/clj-kondo/clojars-verification-borkdude :thinking_face: