Fork me on GitHub
#clj-kondo
<
2019-07-08
>
borkdude08:07:26

@jr0cket I had first published the snap with confinement --dev-mode but now I used --classic.

borkdude08:07:35

It seems they put it in review now because of this: https://dashboard.snapcraft.io/snaps/clj-kondo/revisions/2/

sogaiu11:07:45

both options are improvements over the one that used 2 parens 🙂

dharrigan12:07:37

First one

👍 4
dharrigan12:07:44

clj-kondo.svg

lread22:07:50

I am digging into clj-kondo warnings for rewrite-clj cljc project I am working on. Love it!

lread22:07:44

I am thinking clj-kondo might be seeing this as zero arg fn?

(defn parse-next
  [#?(:cljs ^not-native reader :default reader)]
  (reader/read-with-meta reader parse-next*))

lread22:07:42

A similar example, clj-kondo is seeing this as a 1 arg fn:

(defn- string-of?
  [#?(:clj ^String s :default s) pred]
  (and s
       (string? s)
       (pos? (count s))
       (every? pred s)))