This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-20
Channels
- # adventofcode (29)
- # announcements (7)
- # aws (1)
- # babashka (3)
- # beginners (43)
- # biff (20)
- # clj-kondo (44)
- # cljs-dev (20)
- # clojure (74)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-nl (13)
- # clojure-norway (3)
- # clojurescript (31)
- # code-reviews (1)
- # community-development (12)
- # cursive (3)
- # datomic (6)
- # emacs (1)
- # fulcro (25)
- # interop (7)
- # introduce-yourself (2)
- # leiningen (30)
- # nbb (3)
- # overtone (1)
- # podcasts-discuss (5)
- # polylith (24)
- # practicalli (1)
- # reclojure (1)
- # reitit (13)
- # rum (7)
- # shadow-cljs (12)
- # sql (23)
- # squint (51)
- # test-check (1)
- # testing (2)
- # tools-deps (2)
Two ways: • Use clj-kondo as a git dependency • Download a binary from one of the builds
I could make a --dev-build
flag to install with the clj-kondo install script maybe, would take a couple of hours of work
@U04V15CAJ awesome, thank you!
yes, but I was saying that the babashka install script supports --dev-build
, the clj-kondo script doesn't yet
What I mean is, babashka supports installing a dev build of babashka in its install script
for now it's probably easiest to link to a amd linux binary from a recent circleci build
I aim for a monthly release since it's a bit of a hassle to release and if I'll do one, the high priority tickets here have to get fixed first: https://github.com/clj-kondo/clj-kondo/projects/1 So I think it's best to either use the git dep or download the pre-built dep from circleci or implement the --dev-build option
The only two changes so far are https://github.com/clj-kondo/clj-kondo/blob/master/CHANGELOG.md#unreleased Compare to the other releases which are often a bit more substantial
@mkvlr This link should be good: https://output.circle-artifacts.com/output/job/5e6d17d2-f3f3-4123-a521-96639ced7d8b/artifacts/0/release/clj-kondo-2022.12.11-SNAPSHOT-linux-static-amd64.zip
The download is valid for 30 days or so but by the time it invalidates, there will be a new clj-kondo release
You can do this by making a namespace group based on the name of the namespaces or pattern of the file + config-in-ns https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#namespace-groups
Or if this is only for clojure.test :refer :all
then you can configure that in config.edn
except for one case where it doesn’t, curious if you see something wrong there, posted it in the ductile channel
:refer :all
is making things a lot more difficult for clj-kondo and static analysis in general, problems are expected with multiple of those
> problems are expected with multiple of those do you mean if referred names overlap or in general? Since kondo does analyze the required namespaces can’t you infer where a name is coming from?
So I made a silly error in my deps.edn file that looks like this:
{:deps {<library> {:mvn/version ... :exclusions [[nested-too-deep]]}, ...}...}
It showed up as a cryptic stack trace, and seemed funny that this wasn't flagged as a spec viloation. I asked about this on #C03S1KBA2, and they suggested that clj-kondo might be able to catch this.
Entering
clojure -M:kondo --lint deps.edn
Does not flag an error, but obvious syntax errors do get flagged. As I said, I think this is more of a spec violation. Am I using the wrong incantation?This specific case hasn't been covered by clj-kondo, but feel free to post an issue about it
Thanks!
@ericdallo Would you mind bumping clj-kondo on clojure-lsp master, so @phillipmates and some other can install the nightly with some (for them) relevant changes? cc @mkvlr