-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:warn-if-ret-val-unused should not be true for clojure.tools.reader.edn/read #451
Comments
Thanks! Yes, fully makes sense. I'll release this asap. |
@vemv I found the following vars for which I'm not sure if that is intentional or not. If it is, then perhaps the above is also intentional?
|
Most of the above vars make sense to me when you look at them case by case, but perhaps |
Indeed, I was going to say this. They're bit of a mixed bag. It also doesn't help that
Yup |
In addition: |
Btw, I was able to work around this manually, no need for a quick release |
I believe that
:warn-if-ret-val-unused
should not be true forclojure.tools.reader.edn/read
:eastwood/resource/var-info.edn
Line 1238 in 34c729c
as this function may be called just for side effects, like here:
One such case can be found here: https://github.com/clojure/tools.reader/blob/0d3a7cd946e0ef377b7fe2c85df6cf940ff39c81/src/main/clojure/clojure/tools/reader/edn.clj#L299-L302
clj-kondo uses the
:warn-if-ret-val-unused
field for detecting function calls that could be omitted and the above caused a false positive.The text was updated successfully, but these errors were encountered: