This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-31
Channels
- # announcements (6)
- # babashka (32)
- # beginners (78)
- # biff (11)
- # calva (7)
- # clj-kondo (20)
- # clojure (35)
- # clojure-europe (10)
- # clojure-nl (4)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (41)
- # conjure (14)
- # core-async (10)
- # cursive (7)
- # datomic (12)
- # deps-new (4)
- # emacs (15)
- # fulcro (48)
- # gratitude (11)
- # hugsql (1)
- # hyperfiddle (3)
- # introduce-yourself (3)
- # jobs (3)
- # klipse (2)
- # off-topic (7)
- # polylith (30)
- # reitit (1)
- # remote-jobs (1)
- # reveal (8)
- # scittle (4)
- # shadow-cljs (40)
- # squint (13)
- # tools-deps (7)
- # xtdb (7)
Does clj-kondo include any functions that it uses for parsing file contents according to the usage/definition information (`row`, col
, etc.) returned by the kondo's analysis?
I'd like to get file contents as a collection of its constituent parts and thought there might be something in the code base for it already.
Recently @U06BE1L6T added this to the wiki: https://github.com/clj-kondo/clj-kondo/wiki/Analysis-tips-and-tricks#getting-the-source-for-usage-of-a-var
@U04V15CAJ thanks, that's a start. As an aside, has there been any discussion about doing deeper function call argument analysis?
For example, for functions taking kwargs, analyse which kwargs are being used in their calls. Or to take it one step further, if a particular argument can be any of a set of static values (boolean, keyword, etc.), do analysis to check which static values are being passed. Does that make sense?
There is also a bit of that in clj-kondo for type checking, but are you asking for this to be exposed in the exported analysis?
Yeah, I'm interested in getting a distribution of the ways that some given function gets used.
Arities is the first step, so I'm wondering if there's been any discussion about exposing deeper analysis of that type.
Okay, thanks. I'll ponder it some more. I think there could be some use to it but maybe it's too niche if it hasn't been touched on previously.
Not quite public yet, but will be soon. I'm building a Clojure code explorer. Largely powered by clj-kondo. The idea is to make it easy to see how libraries are being used in the wild by connecting analysis of publicly available libraries. A learn-by-example thing.
Cool! This is exactly the thing I was describing at the end of my cognicast interview. Did you pick up the idea there or came up with it independently?
But as I am doing a lot of other things, I never found time for it, so I'm happy you're doing it :)
It's a fun little project so far. It's nice when I can use the project to help me build the project š crossclj.. I'll need to look that up.
https://github.com/fbellomi/crossclj yep, haven't heard of that either but it sounds very similar.
I've noticed a couple config options that aren't documented. Should they be?
ā¢ :not-a-function
ā¢ :hook
ā¢ :unexpected-recur