Fork me on GitHub
#clj-kondo
<
2020-03-04
>
dharrigan08:03:55

I'm using expectations.clojure.test and I'm getting a lint error - perhaps because of the macro usage. Can I tell clj-kondo to ignore?

dharrigan08:03:18

error: unresolved symbol extract-lat-lng-from-

borkdude10:03:51

@dharrigan Can you please post code along with the screenshot, so I can see what it looks like and test it?

borkdude10:03:22

I suspect {:lint-as {foo/defexpect clojure.test/deftest}} will work

dharrigan10:03:16

sure, let me try your suggestion first 🙂

dharrigan10:03:29

Thanks @borkdude. I had my clj-kondo configuration in the wrong location (home directory, not in the local project folder)

borkdude13:03:15

@suomi.esko informed me that it's possible to use https://github.com/gregsh/Clojure-Kit/ to set up clj-kondo integration in IntelliJ IDEA

borkdude13:03:32

I haven't tried it, but if someone wants to and wants to document it, here's the issue: https://github.com/borkdude/clj-kondo/issues/786

oliy17:03:31

Hi, I have some imports in my ns declaration that are unused, but they have side effects (logback). It looks like that linter can't be configured. Should I raise a GitHub issue?

oliy17:03:10

By the way clj-kondo is great, I am impressed by how much more it covers than Joker which I was using before

borkdude17:03:11

@oliy if you are requiring those namespace only for side-effects, you should not give them an alias or use refer and then the linter doesn't warn about them

oliy17:03:33

They are not clojure namespaces, they are java classes

borkdude17:03:50

imports do not have side effects

borkdude17:03:13

thanks for the compliment btw

oliy17:03:22

The class must have a static block or something

oliy17:03:06

The information I have at the moment is that if we don't import them then logback doesn't work

oliy17:03:17

I can give you more info tomorrow on the specific classes?

borkdude17:03:32

that isn't correct. importing is only syntactic sugar, it does not have an effect on class loading

oliy17:03:08

Ok I'll dig a bit deeper, thanks for your help