We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given splint/bug.clj:
splint/bug.clj
(ns splint.bug) (let [x {} y 1] (assoc x :a (or (:a x) y)))
splint suggests:
$ clj -M:splint splint/bug.clj splint/bug.clj:6:3 [lint/assoc-fn] - Use `update` instead of recreating it. (assoc x :a (or (:a x) y)) Consider using: (update x :a or y) Linting took 62ms, checked 1 files, 1 style warnings
but this is a syntax error: Can't take value of a macro: #'clojure.core/or
Can't take value of a macro: #'clojure.core/or
The text was updated successfully, but these errors were encountered:
2414ff5
Fixed in release 1.15.1. Thanks for letting me know!
Sorry, something went wrong.
No branches or pull requests
Given
splint/bug.clj
:splint suggests:
$ clj -M:splint splint/bug.clj splint/bug.clj:6:3 [lint/assoc-fn] - Use `update` instead of recreating it. (assoc x :a (or (:a x) y)) Consider using: (update x :a or y) Linting took 62ms, checked 1 files, 1 style warnings
but this is a syntax error:
Can't take value of a macro: #'clojure.core/or
The text was updated successfully, but these errors were encountered: