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
I have read the Clojure etiquette and will respect it when communicating on this platform.
version
borkdude/brew/clj-kondo: stable 2024.03.13
platform
via clojure-lsp
editor
Emacs, clojure-lsp
problem
I modified a Java object in a for, but since it's lazy and not returned or otherwise evaluated, the code never runs. This should probably be linted as an unused value?
I would have expected clj-kondo to inform me that the for here is useless.
The text was updated successfully, but these errors were encountered:
borkdude
changed the title
Useless lazy construct is not reported as an unused value
Useless lazy construct in let is not reported as an unused value
Apr 3, 2024
borkdude
changed the title
Useless lazy construct in let is not reported as an unused value
Useless for expression not reported as an unused value
Apr 5, 2024
version
borkdude/brew/clj-kondo: stable 2024.03.13
platform
via clojure-lsp
editor
Emacs, clojure-lsp
problem
I modified a Java object in a
for
, but since it's lazy and not returned or otherwise evaluated, the code never runs. This should probably be linted as an unused value?repro
expected behavior
I would have expected clj-kondo to inform me that the
for
here is useless.The text was updated successfully, but these errors were encountered: