This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-11
Channels
- # adventofcode (52)
- # announcements (3)
- # aws (2)
- # babashka (36)
- # babashka-sci-dev (4)
- # beginners (69)
- # biff (45)
- # calva (9)
- # cider (3)
- # clara (8)
- # clj-kondo (24)
- # clojure (20)
- # clojure-dev (12)
- # clojure-europe (12)
- # clojurescript (2)
- # conjure (1)
- # emacs (17)
- # lsp (69)
- # malli (12)
- # off-topic (32)
- # polylith (2)
- # re-frame (4)
- # releases (2)
- # scittle (6)
- # shadow-cljs (21)
- # tools-deps (10)
- # vim (11)
- # xtdb (11)
e.g.
(my-special-macro foo bar baz)
I just want clj-kondo to ignore all forms inside my-special-macro
for now@U4YGF4NGM not all warnings, but you can tweak specific linters within a macro
that might work. I'm trying to figure out how to disable the linter for
error: a number is not a function
Maybe enable this one: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#show-linter-name-in-message
{:config-in-call
{town.lilac.mogget/eval
{:linters {:unresolved-symbol {:level :off}
:invalid-arity {:level :off}
:private-call {:level :off}
:not-a-function {:level :off}}}}}
works great 🙂 thank you for the help!clj-kondo will soon get support for linting inside quoted expressions (so navigation, etc work, but all warnings disabled)
it just seemed nice to be able to type
(eval 1 (inc) (inc) bi) ;; => [2 2]
without an extra set of parens & a quoteyou could also write a hook for this which expands into a quoted form and a vector carrying the expressions ;)
yeah, I might write my own custom hook for it later if I get really in the weeds. just wanted a quick way to turn it off so I could find the actual bugs in my code 😛
here's day 1 of AoC in my little language 😄
"1000
2000
3000
4000
5000
6000
7000
8000
9000
10000"
#"\n" str/split
(parse-long) map
(nil?) partition-with
(0 (+) reduce) map
;; part 1
(0 (max) reduce)
;; part 2
(sort reverse 3 take 0 (+) reduce)
bi
I was doing AoC in https://factorcode.org and got inspired to make one myself