clj-kondo

https://github.com/clj-kondo/clj-kondo
Marc O'Morain 2020-05-07T10:24:50.131200Z

I’m getting tempted to implement macro-expansion in clj-kondo πŸ™‚

bherrmann 2020-05-07T12:27:21.132700Z

I thought I'd try using clj-kondo with emacs. So I think I followed the instructions... but I'm not getting rightly harassed by the checker...

bherrmann 2020-05-07T12:27:27.132800Z

bherrmann 2020-05-07T12:27:48.133500Z

I presume it should be giving me feedback about the select-keys statement.

bherrmann 2020-05-07T12:33:02.134200Z

Humm..... (flycheck-buffer) says "Flycheck mode diabled"

2020-05-07T12:33:02.134300Z

you have disabled flycheck clj-kondo is working together with flychek

bherrmann 2020-05-07T12:36:24.134700Z

evaling this turned it on ...  (global-flycheck-mode)

hindol 2020-05-07T16:13:00.136200Z

You should not turn it on globally though. You should hook it with the Clojure mode you are using.

hindol 2020-05-07T16:14:18.137100Z

Unless you wanted to turn on flycheck mode for every major mode.

bringe 2020-05-07T19:02:10.138900Z

Hello, I'm trying to exclude a couple of macro symbols from being linted. This is my config in .clj-kondo/config.edn in the root of my project (same level as deps.edn).

{:linters 
 {:unresolved-symbols 
  {:exclude [(io.pedestal.interceptor.error/error-dispatch [ctx ex])]}}}
Then in my code I require this namespace/function like
[io.pedestal.interceptor.error :refer [error-dispatch]]
But ctx and ex are still getting flagged as unresolved

bringe 2020-05-07T19:02:31.139Z

bringe 2020-05-07T19:02:43.139500Z

I am pretty sure I'm doing something wrong, but not seeing what

borkdude 2020-05-07T19:03:19.139600Z

Without a minimal but complete repro I also can't see what πŸ™‚

borkdude 2020-05-07T19:05:25.139800Z

Ah, spotted it

borkdude 2020-05-07T19:05:38.140Z

the linter is called *-symbol single, not plural

borkdude 2020-05-07T19:05:47.140200Z

singular

bringe 2020-05-07T19:07:58.140400Z

Ah thanks!

just.sultanov 2020-05-07T22:32:12.141200Z

Hello everyone! Is it just that I can’t download the latest release? Or does everyone have a problem? https://github.com/borkdude/clj-kondo/releases/download/v2020.05.02/clj-kondo-2020.05.02-linux-amd64.zip

borkdude 2020-05-07T22:33:21.141500Z

it seems to be a general Github problem. babashka builds are failing to because of this

just.sultanov 2020-05-07T22:35:23.142100Z

Oh πŸ™‚ I thought so. Also encountered a problem on the CI

nate 2020-05-07T22:45:22.142500Z

seems to be fixed now

nate 2020-05-07T22:45:30.142700Z

I can download from github again

just.sultanov 2020-05-07T23:17:50.143500Z

Me too. Thanks, @nate