This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-08
Channels
- # adventofcode (15)
- # aleph (2)
- # announcements (1)
- # beginners (5)
- # biff (18)
- # cider (2)
- # clj-commons (13)
- # clj-kondo (7)
- # cljs-dev (7)
- # clojure-europe (23)
- # clojure-ireland (1)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-spec (3)
- # clojure-uk (2)
- # cursive (21)
- # emacs (3)
- # honeysql (1)
- # humbleui (7)
- # hyperfiddle (6)
- # introduce-yourself (1)
- # london-clojurians (1)
- # nbb (8)
- # overtone (3)
- # re-frame (15)
- # shadow-cljs (12)
- # squint (12)
- # tools-deps (1)
- # xtdb (1)
clj-kondo version 2023.10.21-SNAPSHOT does not seem to support ignoring the :line-length
linter. For a quick demonstration, use the following configuration
{:linters {:line-length {:max-line-length 80}}}
Then try linting the following namespace
(ns example)
#_{:clj-kondo/ignore [:line-length]}
(def example "this line of code exceeds 80 characters but shouldn't cause warning")
I don’t have a GitHub account, sorry.
I’ve attached a repro using the contents of my post above. It suffices to extract this into a folder then run lein clj-kondo --lint example.clj
. The output is
example.clj:4:81: warning: Line is longer than 80 characters.
linting took 47ms, errors: 0, warnings: 1
I've found where I can add support for :flds, but I can't seem to find how to branch depending on the runtime. analyzer.clj isn't cljc so I can't just add conditionals using that. What would be the ideal way? https://github.com/clj-kondo/clj-kondo/issues/2227
If there is a constants.cljc somewhere I could add supported-destructuring-shorthands there but I don't think there is one