Fork me on GitHub
#clj-kondo
<
2021-02-28
>
gmercer04:02:49

Hi, I could not seem to find the exclude mechanism for ignoring java.lang.* e.g. (Integer/parseInt numstr) , any clues appreciated

borkdude07:02:19

@gmercer please give a full standalone repro and then the expected outcome

gmercer08:02:25

@borkdude I just cloned https://github.com/mogenslund/liquid and ran clj-kondo --lint src/liq/editor.cljc

gmercer08:02:14

It is a cljc so this command removes the warning cat src/liq/editor.cljc | clj-kondo --lang clj --lint -

borkdude08:02:38

If it’s cljc Java interop should not occur outside of branches

borkdude08:02:32

Unless it targets a different runtime than JVM and JS

gmercer08:02:20

ahh - I see

gmercer08:02:25

sorry - for what looks like cross-posting - but they were slightly different problems (in my mind)

gmercer08:02:08

PS really enjoying your latest videos .. I was wondering about a bb/graalvm version of liquid .. which requires some understanding of sci+graal, any chance of a video on that topic?

gmercer08:02:59

e.g. a tiny project that you could show is not sci compatible, the slight changes to make it so and how that can be graal'd

borkdude08:02:07

@gmercer You need sci if you need eval in your program. If you don't need this, you can possibly just compile it with GraalVM as is

borkdude08:02:06

I'm not sure what it entails to compile liquid to graalvm. What does it use for UI?

borkdude08:02:13

@gmercer The main incompatibility with sci and clojure is the absence of deftype and definterface and some edge cases around defprotocol and reify

gmercer08:02:13

@borkdude liquid is a zero dependency text based vim/emacs mash - beware it may leave you terminal a bit wonky, definitely worth a try

lread17:02:02

What do you think about a linter that warns if you are using a var/ns from a dep that is marked with :no-doc?

borkdude17:02:47

@lee That seems interesting, but clj-kondo doesn't know what is a dep and what is your own source

lread17:02:15

yah, was describing in the abstract, you’d have to tell it to exclude your nses.

borkdude18:02:03

I've also mean meaning to do something like this for vars from .impl namespaces. Let's think more about it. But first: dinner.

lread18:02:34

Bon appetit!

lread18:02:38

BTW, liking your vids @borkdude! If I hadn’t chosen to be a frugally retired hobbyist, I’d certainly be sponsoring you (and others). Hopefully my contributions in other areas in some small way make up for my lack of $ sponsorship!

❤️ 3
borkdude18:02:13

It sure does, don't worry :)

lread18:02:53

I’d love to see you be able to afford to do OSS as your main job!

borkdude19:02:35

@juhoteperi Thanks for sponsoring me on Github! Would you like access to the private sponsors channel?

juhoteperi09:03:17

Thanks! Sure.