From d7829c118dfc641f4147447f45394c3fb453f5f0 Mon Sep 17 00:00:00 2001 From: Tom Dalziel Date: Mon, 4 Nov 2024 17:50:40 +0100 Subject: [PATCH] Include fn* in the core-syms that analyze-usages2 checks e.g. now "(fn* [] 1 2)" now issues an "Unused value: 1" warning, just like "(fn [] 1 2)" does. --- src/clj_kondo/impl/analyzer/usages.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clj_kondo/impl/analyzer/usages.clj b/src/clj_kondo/impl/analyzer/usages.clj index 1bd656bf46..f9a2339eae 100644 --- a/src/clj_kondo/impl/analyzer/usages.clj +++ b/src/clj_kondo/impl/analyzer/usages.clj @@ -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]))] @@ -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])