You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clj-kondo already supports flagging unused variable declarations.
I can name a variable starting with _ to signal that I don't want the warning for a particular variable. However, if I then accidentally use such a variable, clj-kondo does not warn me that I've used a variable marked as unused.
I would like such variable declarations (or use sites) to be flagged.
(defnfoo (f g) ;; g is unused, so warn
{:sigma (fn (x _y) (f x)) ;; correct _y is unused, but don't warn:alpha (fn (x _y) (f x _y))}) ;; _y is used, so warn
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
clj-kondo already supports flagging unused variable declarations.
I can name a variable starting with _ to signal that I don't want the warning for a particular variable. However, if I then accidentally use such a variable, clj-kondo does not warn me that I've used a variable marked as unused.
I would like such variable declarations (or use sites) to be flagged.
The text was updated successfully, but these errors were encountered: