This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-06
Channels
- # aleph (1)
- # announcements (2)
- # beginners (109)
- # calva (48)
- # cider (25)
- # clj-kondo (38)
- # cljdoc (13)
- # clojure (203)
- # clojure-europe (23)
- # clojure-gamedev (3)
- # clojure-nl (3)
- # clojure-uk (7)
- # conjure (2)
- # data-science (1)
- # datalog (2)
- # datomic (7)
- # deps-new (16)
- # depstar (2)
- # docker (2)
- # fulcro (67)
- # graalvm (58)
- # honeysql (16)
- # java (2)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (4)
- # lsp (82)
- # malli (23)
- # off-topic (35)
- # polylith (18)
- # practicalli (5)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (15)
- # sql (17)
- # timbre (1)
- # tools-deps (24)
- # vim (20)
- # xtdb (9)
I’m using Specter (https://github.com/redplanetlabs/specter) in my current project and clj-kondo can’t seem to resolve some of the “navigators” (https://github.com/redplanetlabs/specter/wiki/List-of-Navigators):
the code runs fine, but it seems that the way specter defines them makes it hard for kondo to follow correctly
is there anything i can do to make this work without adding every navigator to my .clj-kondo/config.edn file?
oops, i am ashamed to have missed that lol
thank you
that’s very cool, thank you
No, sorry. I should have been more specific. Thank you for the link to the spectre#clj-kondo information. I didn't see that too. I've added that to my clj-kondo config file as well.
Yeah, I added that config a while back @nbtheduke. It may end up eventually needing some more stuff though, so let me know if you run into anything unrecognized or linting weirdly and we can collaborate on that config before making another pr to the repo.
Oh wow is specter under your umbrella?
I use it all the time and I contributed that config to the repo, but I'm not a frequent contributor or anything.
Also @borkdude I asked the author of specter if he wanted to have the config in the artifact and he said no since it increases the size of the artifact (if only slightly) and the number of people who use clj-kondo is still a minority.
Then perhaps contributing it to https://github.com/clj-kondo/config is a good second option
I'd be happy to contribute it there if it'd be accepted.
anyway, this will always be an issue (being at the mercy of library maintainers), so clj-kondo/config seems like something which is always possible and perhaps clj-kondo itself could look for config over there automatically in the future
the nice thing about having the config with the library itself is that the config can be maintained per library version
Could have like a --contrib-configs flag when using --copy-configs that'd check for it in this repo.
Then the repo could become just community-maintained configs that people can use, while still leaving the option for the lib maintainers to publish one that doesn't conflict in the future. I like that idea a lot.
Reminds me of DefinitelyTyped, the npm packages that add Typescript definition files for JavaScript libraries. Maybe this could be the same?
Micro-release with a bugfix and one new feature by @hugod : https://github.com/clj-kondo/clj-kondo/blob/master/CHANGELOG.md#20210806
Reminds me of DefinitelyTyped, the npm packages that add Typescript definition files for JavaScript libraries. Maybe this could be the same?