Skip to content

Commit

Permalink
Include fn* in the core-syms that analyze-usages2 checks
Browse files Browse the repository at this point in the history
e.g. now "(fn* [] 1 2)" now issues an "Unused value: 1" warning,
just like "(fn [] 1 2)" does.
  • Loading branch information
tomdl89 committed Nov 4, 2024
1 parent e8f0a6f commit d7829c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj_kondo/impl/analyzer/usages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
(and (not generated?)
core?
(not (:clj-kondo.impl/generated (meta parent-call)))
(one-of core-sym [do fn defn defn-
(one-of core-sym [do fn fn* defn defn-
let when-let loop binding with-open
doseq try when when-not when-first
when-some future]))]
Expand All @@ -304,7 +304,7 @@
(or core? test?)
(not (:clj-kondo.impl/generated (meta parent-call)))
(if core?
(one-of core-sym [do fn defn defn-
(one-of core-sym [do fn fn* defn defn-
let when-let loop binding with-open
doseq try when when-not when-first
when-some future])
Expand Down

0 comments on commit d7829c1

Please sign in to comment.