This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-03
Channels
- # announcements (1)
- # babashka (31)
- # bangalore-clj (3)
- # beginners (18)
- # bitcoin (2)
- # calva (14)
- # clj-kondo (37)
- # clojure (43)
- # clojure-europe (4)
- # clojurescript (24)
- # data-science (4)
- # datahike (1)
- # datascript (3)
- # datomic (1)
- # fulcro (16)
- # lsp (13)
- # malli (1)
- # meander (7)
- # off-topic (1)
- # polylith (12)
- # re-frame (7)
- # reitit (1)
- # rewrite-clj (46)
- # rum (4)
- # shadow-cljs (15)
- # specter (3)
- # sql (55)
- # tools-deps (20)
Any reason why clj-kondo doesn't lint (Foo.)
as unresolved-symbol
but it does when Foo.
without the parens? ๐งต
I didn't know about it, besides java.lang is there other classes that one can configure to use without import?
The check for class names used to include a dot, but I lifted this since some people did have single segment classes
I can find one here: https://github.com/clj-kondo/clj-kondo/issues/950 but that doesn't have this example
there might be some rule in clj-kondo that says: if the call ends with a dot, just leave it alone, since it's a constructor and people know what they are doing with classes
yeah, I see, It would be really cool to find some way to lint that, but I can't think in anything that would always work/makes sense
Maybe try adding a warning for a constructor call that only has a single segment and see if this breaks any tests
Would be hard to make clj-kondo support java classes arglists/docs in analysis output? ๐งต
I think would be necessary to add support for java classes analysis that probably is no easy task
ATM, java usages are just var-usages
buckets, it'd be necessary to have a var-definition
for those I think