Fork me on GitHub
#clj-kondo
<
2019-06-01
>
borkdude09:06:57

clj-kondo v2019.06.01-alpha! 🎉 major new feature: detecting unused function arguments and local bindings https://github.com/borkdude/clj-kondo/releases/tag/v2019.06.01-alpha

lread16:06:28

I am finally trying out clj-kondo! Very cool, and much thanks @borkdude!

lread16:06:34

I use spacemacs, do you want to add any extra guidance https://github.com/borkdude/flycheck-clj-kondo/blob/master/README.md or are folks generally expected to know what to do?

lread16:06:54

I opted to enable both joker and clj-kondo so I first added these packages to my .spacemacs config like so:

dotspacemacs-additional-packages '(flycheck-clj-kondo flycheck-joker)
And then again in .spacemacs added the following under dotspacemacs/user-config
;; setup clojure linters
  (use-package clojure-mode
    :ensure t
    :config
    (require 'flycheck-joker)
    (require 'flycheck-clj-kondo)
    (dolist (checkers '((clj-kondo-clj . clojure-joker)
                        (clj-kondo-cljs . clojurescript-joker)
                        (clj-kondo-cljc . clojure-joker)))
      (flycheck-add-next-checker (car checkers) (cons 'error (cdr checkers)))))

lread16:06:34

I guess ideally these linters would be optionally provided by the spacemacs clojure layer: https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Blang/clojure

borkdude17:06:46

@lee cool 🙂

lread21:06:16

@borkdude, that’s pretty cool!