Michiel Borkent
Michiel Borkent
``` (let [{:keys [a b], b :a} {:a 1, :b 2}] [a b]) ```
see title
``` $ clj Clojure 1.10.1 user=> (defn f []) #'user/f user=> (def g #'f) #'user/g user=> (g 1) Execution error (ArityException) at user/eval137 (REPL:1). Wrong number of args (1) passed...
Transient functions like `assoc!` do not necessarily return the same object every time. Hence the return value should be used and if it isn't, clj-kondo should warn about it. We...
Clj-kondo could warn on things like `(try (map ...))` (laziness) inside try, with-redefs, with-open and binding. We already have information about laziness in https://github.com/jonase/eastwood/blob/fa22247fa976d03fd37cdfbb4554d26e61b3842b/resource/var-info.edn#L373.
Warn about unsorted imports. Rename `:unsorted-required-namespaces` to `:unsorted-requires` for consistency.
See https://github.com/candid82/joker/issues/455
``` clojure (deftest foo-test #?(:clj (testing "foo" (prn :x)) (testing "bar" (prn :y)))) lein test sci.reify-test :x ``` (note: no :y)
Warn about fn bodies that aren't sorted in increasing arity